home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!purdue!yuma!oldfield!freedman
- From: freedman@oldfield.colostate.edu (keith freedman)
- Subject: Re: path in title bar
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Message-ID: <Nov06.175637.75036@yuma.ACNS.ColoState.EDU>
- Date: Fri, 06 Nov 1992 17:56:37 GMT
- Reply-To: freedman@oldfield.colostate.edu
- References: <1992Nov6.022528.27362@xilinx.com>
- Nntp-Posting-Host: oldfield.cs.colostate.edu
- Organization: Sun Microsystems, Inc.
- Lines: 35
-
-
- This shell script changes the X-Term title bar.
- The -i option changes the icon title, the
- -t option changes the window title, -b
- changes both to the same string!
-
- I use -b $HOSTNAME and then -i $PATH
-
-
- #!/bin/csh -f
- # cshell script to change the title on an xterm window and/or its icon.
- if ( $#argv != 2 ) then
- /bin/echo "Usage: xtitle { -t | -i | -b } string"
- exit
- endif
-
- set ESC=""
- set ND=";"
- set NP=""
- if ( "$1" == "-t" ) then
- /bin/echo -n "${ESC}]2${ND}$2${NP}"
- else if ( "$1" == "-i" ) then
- /bin/echo -n "${ESC}]1${ND}$2${NP}"
- else if ( "$1" == "-b" ) then
- /bin/echo -n "${ESC}]0${ND}$2${NP}"
- else
- /bin/echo "Usage: xtitle { -t | -i | -b } string"
- endif
-
- ---
- Keith Freedman
- Colorado State University
- Department of Computer Science
- Systems Administration
-
-