[comp.sys.sgi] icon titles...

karron@MCIRPS2.MED.NYU.EDU (10/14/90)

I just recalled a note to you about this subject...

I must be getting postings twice, but here is your answer. I will
check it in a few min, but first:


To change the icon title:
        echo "\033P3.yTITLE\033\\"

Just for completeness, here's how to change the wsh title:
        echo "\033P1.yTITLE\033\\"

from --
Vic Mitnick                Silicon Graphics, Inc.
vic@sgi.com                System Software Division
(415)335-1372



dan.
+-----------------------------------------------------------------------------+
| karron@nyu.edu                          Dan Karron                          |
| . . . . . . . . . . . . . .             New York University Medical Center  |
| 560 First Avenue           \ \    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \**\__________________________________________ |
| Please Note :Soon to move to dan@karron.med.nyu.edu 128.122.135.3  (Mid Oct)|
+-----------------------------------------------------------------------------+

karron@MCIRPS2.MED.NYU.EDU (10/19/90)

>Date: Wed, 17 Oct 90 21:24:54 -0400
>From: Dong Chen <dong@wam.umd.edu>
>Message-Id: <9010180124.AA18109@epsl.umd.edu>
>To: karron%CMCL2.NYU.EDU@cunyvm.cuny.edu
>Subject: Re: icon titles...
>Newsgroups: comp.sys.sgi
>In-Reply-To: <9010141055.AA11217@mcirps2.med.nyu.edu>
>Organization: University of Maryland at College Park
>
>In article <9010141055.AA11217@mcirps2.med.nyu.edu> you write:
>>To change the icon title:
>>        echo "\033P3.yTITLE\033\\"
>
>I tried this,but it didn't work.
>actully, nothing happened,no error massage.
>Change window name command works fine.
>Could you send me your script?.
>
>
>Dong Chen
>

I have heard that you need IRIX 3.3.1 (or 3.3 ??) for this
trick to work. This is what I use to annotate my windows and
icons after a cd, pushd,popd. Note this is a built in function
in tcsh. You have to alias cd, pushd,popd in csh.

-------------------------------------------------------------------------------

#! /bin/sh
TITLE=`pwd`
TITLE=`basename $TITLE`
echo "\033P3.y${TITLE}\033\\ ""\033P1.y${LOGNAME} on ${HOST} at ${TITLE}\033\\"

-------------------------------------------------------------------------------
I have not quite gotten all of the quoted escaped backslashes and escaped
quotes to work with a trailing \c to suppress the newline, but the newline
after the cd does not look too bad.


+-----------------------------------------------------------------------------+
| karron@nyu.edu                          Dan Karron                          |
| . . . . . . . . . . . . . .             New York University Medical Center  |
| 560 First Avenue           \ \    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \**\__________________________________________ |
| Please Note :Soon to move to dan@karron.med.nyu.edu 128.122.135.3  (Mid Oct)|
+-----------------------------------------------------------------------------+