home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ncar!hsdndev!dartvax!news
- From: Andy.Behrens@coat.com
- Newsgroups: comp.windows.x.apps
- Subject: Re: Setting icon title for an xterm
- Message-ID: <C189xD.9yp@dartvax.dartmouth.edu>
- Date: 21 Jan 93 23:44:00 GMT
- References: <C17oFA.Hq2@cs.uiuc.edu>
- Sender: wendell@coos.dartmouth.edu
- Organization: Dartmouth College, Hanover, NH
- Lines: 33
-
- schwager@mike.cs.uiuc.edu (Mike Schwager) writes:
- > How would I set the icon title for an xterm, from that xterm. I already
- > know how to reset the titlebar title ...
-
- The following script lets you change the titlebar, the icon name, or
- (the default behavior) both at once.
-
- Examples:
- titlebar New Name
- titlebar -n New IconName
- titlebar -T New Title
-
- ============================== CUT HERE ==============================
- #! /bin/sh
-
- # titlebar - sets titlebar and icon name
-
- param=0
-
- esc=` echo X | tr X '\033' `
- bel=` echo X | tr X '\007' `
-
- case "$1" in
- -n | -icon[nN]ame)
- param=1; shift ;;
- -T | -title)
- param=2; shift ;;
- -*)
- echo >&2 'usage: titlebar [-T | -n] text'; exit 1 ;;
- esac
-
- echo "${esc}]${param};$*${bel}"
- ============================== CUT HERE ==============================
-