[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A KDE/Konsole question



Ilya Konstantinov wrote:

> On Mon, Jul 23, 2001 at 08:56:58PM +0300, Daniel Feiglin wrote:
> 
>>Hello!
>>
>>Does anyone know how to get konsole to execute a command or a script before 
>>passing control to the user? (NB The -e <cmd> option executes command cmd 
>>and exits - not very helpful.)
>>
>>I would like, for example, to preset TERM=xterm as a default for all konsole 
>>
>>sessions. If you do this, the mouse works correctly for apps like mc.
>>
>>Environment: SuSE 7.1/KDE 2.0
>>Reference: kconsole --help-all (No much!)
>>
> 
> My Konsole (on KDE 2.2beta1) sets TERM=xterm itself.
> 
> Alternatively, you can create a little script to do this:
> #!/bin/sh
> export TERM=xterm
> exec bash
> 
> and use 'konsole -e your_script'
> 


That worked! Thanks.


> Of course, replace bash with your prefered shell, and make the script
> executable.
> 
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
> 
> 
> 



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il