home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!mips2!cass.ma02.bull.com!think.com!ames!agate!doc.ic.ac.uk!cc.ic.ac.uk!imperial.ac.uk!vulture
- From: vulture@imperial.ac.uk (Thomas Sippel - Dau)
- Newsgroups: comp.sys.sgi
- Subject: Re: changing icon title dynamically
- Message-ID: <1992Nov12.193245.24762@cc.ic.ac.uk>
- Date: 12 Nov 92 19:32:45 GMT
- References: <1992Nov11.175635.28531@tamsun.tamu.edu> <1drjndINNn25@fido.asd.sgi.com>
- Sender: vulture@carrion.cc.ic.ac.uk (Thomas Sippel - Dau)
- Reply-To: cmaae47@imperial.ac.uk
- Organization: Imperial College of Science, Technology and Medicine
- Lines: 73
- Nntp-Posting-Host: cscgc
-
- In article <1drjndINNn25@fido.asd.sgi.com>, karlton@fudge.asd.sgi.com (Phil Karlton) writes:
- -
- - In article <1992Nov11.175635.28531@tamsun.tamu.edu>,
- - vamsee@bioiris.tamu.edu writes:
- - > Is there someway to change the icon title dynamically for xwsh ?
- .....
-
- - Check the xwsh man page. Use a '3' instead of a '1' in the escape
- - sequence. Something like
- -
- - echo -n "\033P3.y"${host}"\033\\"
- -
-
- or you could try this script (I have it as /usr/bin/cursor, as I used it first
- to set the cursor colour. there is no man page, but it has some help with it.
-
- Thomas
-
- ---8<--- cut here ----- do not fold, twist, or spindle ----- cut here --->8---
- #!/bin/ksh
- #
- # cursor - set cursor parameter
- #
-
- if test u = "u$2" -a ! help = "$1"
- then
- string=$(colorview)
- else
- string="$2"
- fi
-
- case $1 in
- (back) print -n "\033P5.y"$string"\033\\";;
- (bold) print -n "\033P11.y"$string"\033\\";;
- (colour) print -n "\033P9.y"$string"\033\\";;
- (color) print -n "\033P9.y"$string"\033\\";;
- (fore) print -n "\033P4.y"$string"\033\\";;
- (half) print -n "\033P10.y"$string"\033\\";;
- (icon) print -n "\033P3.y"$string"\033\\";;
- (name) print -n "\033P1.y"$string"\033\\";;
- (tcol) print -n "\033P8.y"$string"\033\\";;
- (text) print -n "\033P4.y"$string"\033\\";;
- (xback) print -n "\033P7.y"$string"\033\\";;
- (xfore) print -n "\033P6.y"$string"\033\\";;
- (*) cat <<- END
-
- $0 - set various cursor and text colours in winterm
- Syntax: $0 mnemonic value
-
- Mnemonic Value Function
- ---------------------------------------------------------
- back colour set background colour
- bold colour set colour of bold background
- colour colour set colour of the text cursor
- half colour set colour of half intensity background
- icon name set name displayed in icon
- name name set name as displayed in title bar
- tcol colour set colour of text under the cursor
- text colour set foreground text colour
- xback colour set colour of selection background
- xfore colour set colour of selection text colour
-
- END
- esac
- ---8<--- cut here ----- do not fold, twist, or spindle ----- cut here --->8---
-
-
- --
- *** This is the operative statement, all previous statements are inoperative.
- * email: cmaae47 @ ic.ac.uk (Thomas Sippel - Dau) (uk.ac.ic on Janet)
- * voice: +44 71 589 5111 x4937 or 4934 (day), or +44 71 823 9497 (fax)
- * snail: Imperial College of Science, Technology and Medicine
- * The Center for Computing Services, Kensington SW7 2BX, Great Britain
-