From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,ffb0fb48546947c4 X-Google-Attributes: gid103734,public X-Google-Thread: fee84,ffb0fb48546947c4 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-14 13:01:55 PST Newsgroups: comp.windows.x,comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!uunet!rosevax!camax01!johnsone From: johnsone@camax.com (Eric Johnson) Subject: Re: Machine Name in The Title bar??? Message-ID: <1994Oct14.184835.9098@camax.com> Date: Fri, 14 Oct 1994 18:48:35 GMT References: <37bpie$8sd@nyx10.cs.du.edu> Organization: CAMAX Systems, Inc. Xref: bga.com comp.windows.x:12606 comp.unix.osf.osf1:4052 fuhrmann@weyl.iaas-berlin.de (FUHRMANN) writes: >In article <37bpie$8sd@nyx10.cs.du.edu>, mhatz@nyx10.cs.du.edu (Mike Hatz) writes: >|> >|> Is there a script someone could send along or give a hint for a hack that >|> displays the machine name you are logged into in the window title? (ksh method deleted...) I, too, log in to other systems quite a lot. I use the following C shell (csh) alias: alias xcd 'cd \!* ; echo -n "^[]2;`whoami` @ `hostname` `pwd` ^G"' ^[ is ESCAPE ^G is bell (ASCII 7) With this, I can use `xcd' in place of `cd'. It places the current username, hostname and directory in the window title bar (using xterm windows). More on this can be found in Using X by Johnson (yours truly) and Reichard, MIS: Press. Hope this helps, -Eric -- Eric F. Johnson email: johnsone@camax.com CAMAX Manufacturing Technologies phone: +1 612 854 5300 7851 Metro Parkway fax: +1 612 854 6644 Minneapolis, MN 55425-1528 USA