[Konsole-devel] Re: Konsole 1.1 - change session title with skript

Waldo Bastian bastian at kde.org
Tue Jun 4 19:02:39 UTC 2002


[Jonathan: This might be usefull for an "advanced" section in the konsole 
handbook?]

On Wednesday 05 June 2002 01:01 am, Alexander Völz wrote:
> Dear Waldo,
>
> I use the Konsole program, and I like the way you can have multiple
> sessions in one window. I have to telnet pretty often to a lot of
> different machines, so this feature helps me getting less confused.
>
> I wonder if it were possible to change the session name automatically to
> the machines name when telnetting to a machine? I would like to use $1,
> but I don't know where Konsole gets the session name from.

You can use the following script:

	dcop $KONSOLE_DCOP_SESSION renameSession $1
	telnet $1

Or alternatively you can execute the following command on the machine you 
telnet into:
	echo -e "\e]30;`hostname`\a"

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com




More information about the konsole-devel mailing list