[Konsole-devel] Extension of XTerm hack? (#36354)

Stephan Binner Stephan.Binner at gmx.de
Sat Feb 9 21:38:29 UTC 2002


Hello,

execution of "dcop $KONSOLE_DCOP_SESSION renameSession $PWD" seems not 
possible inside a Bash prompt and 'export PS1=$PS1"\[\e]0;\w\a\]' only
(should) set caption but doesn't rename session. Any objections against

Index: session.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/session.cpp,v
retrieving revision 1.56
diff -u -3 -p -r1.56 session.cpp
--- session.cpp 2001/12/23 22:50:56     1.56
+++ session.cpp 2002/02/09 21:25:31
@@ -100,6 +100,8 @@ void TESession::setUserTitle( int what,
        userTitle = caption;
     if ((what == 0) || (what == 1))
        iconText = caption;
+    if (what == 3)
+       renameSession(caption); 
     emit updateTitle();
 }

which extends XTerm's hack and allows 'export PS1=$PS1"\[\e]3;\w\a\]'
to rename the session going into KDE 3.0 (despite of feature freeze)? 

We could also occupy what=4 to let Konsole know current directory 
without setting caption and rename session later for wishes as 
"Bookmarks" menu (#25319) and "save cwd on exit" (#37865).

Bye,
   Steve



More information about the konsole-devel mailing list