It is currently Thu, 20 Jan 2022 03:46:11 GMT



 
Author Message
 change xterm title from unix prompt
Hi all !!

Is it possible to change the title or name of the current xterm from the
unix prompt ?

Thank you in advance for your help..

Leyth



 Fri, 09 May 1997 05:52:01 GMT   
 change xterm title from unix prompt
Hi all !!

Is it possible to change the title or name of the current xterm from the
unix prompt ?

Thank you in advance for your help..

Leyth



 Fri, 09 May 1997 06:15:37 GMT   
 change xterm title from unix prompt
|> Is it possible to change the title or name of the current xterm from the
|> unix prompt?

...well, I have this script running which changes the name of my xterm to the
current directory I'm working in.  As you can see it basically uses the command 'xtitle'.  Sorry if this is far from what you were looking for.

#!/bin/ksh
#
# xtitle - add titles to a window and/or icon
#
# -i sets the icon title only
# -w sets the window title only

PATH=/bin:/usr/bin

case "$TERM" in
xterm)
        ;;
*)
        exit 0
        ;;
esac

ESC=`print -n A | tr 'A' '\033'`
CTLG=`print -n A | tr 'A' '\007'`

case "$1" in-w)
        shift
        print -n  "$ESC]2;$*$CTLG"
        exit 0
        ;;
-h*)
        print -n "xtitle [-iw] [text ...]"
        print -n "   -i sets the icon label only"
        print -n "   -w sets the window title only"
        exit 0
        ;;
esac

print -n  "$ESC]0;$*$CTLG"

-i)
        shift
        print -n  "$ESC]1;$*$CTLG"
        exit 0
        ;;

=+=+=+=+==+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+



 Sat, 10 May 1997 05:19:07 GMT   
 
   [ 3 post ] 

Similar Threads

1. Change xterm's title

2. How to change the xterm title line?

3. How to change xterm title bar string?

4. Change xterm title bar?

5. Changing the title bar for Xterm Windows!!!!

6. can't change gnome/sawfish xterm titles


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software