Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!arisia!janssen@holmes From: janssen@holmes (Bill Janssen) Newsgroups: comp.windows.x Subject: Re: Changing Window and Icon Labels Using Escape Sequences Message-ID: <2248@arisia.Xerox.COM> Date: 5 Aug 89 23:52:07 GMT References: <5385@sybase.sybase.com> <3110@gremlin.nrtc.northrop.com> Sender: news@arisia.Xerox.COM Reply-To: janssen@holmes (Bill Janssen) Organization: PARC.Xerox.COM Lines: 39 In-reply-to: echarne@thebeach.nrtc.northrop.com (Eli B. Charne ) In article <5385@sybase.sybase.com> forrest@sybase.com writes: >[...] What I'd like is to be >able to change the labeling "on the fly" from a remote host by sending >an escape sequence (from the remote host) that will be interpreted >by the DecWindows Server on my workstation. Is this possible? I don't know about DecWindows, or dxterm, or whatever, but for Andrew typescript and MIT xterm, you can do the following in your .cshrc: if ($?TERM) then if ($?prompt) then set prompt = "! % " set hostname = `hostname` if ($TERM == "sun") then # sunview cshell alias cd 'chdir \!*; echo -n "^[]l$hostname : $cwd^[\"' ; else if ($TERM == "wm") then # Andrew typescript alias cd 'chdir \!*; echo -n "^A$hostname : $cwd^B"' ; else if ($TERM == "vt100") then # really xterm alias cd 'chdir \!*; echo -n "^[]l$hostname : $cwd^["' ; else if ($TERM == "xterm") then # xterm alias cd 'chdir \!*; echo -n "^[]l$hostname : $cwd^["' ; else # not a labelled window alias cd 'chdir \!*; set prompt = "$hostname : $cwd ! % "' ; endif cd . endif endif (NB: Each of the character pairs beginning with ^ (^[, ^B, ^A) is actually a single character that I've editted so it goes through mail properly.) Bill -- Bill Janssen janssen.pa@xerox.com (415) 494-4763 Xerox Palo Alto Research Center 3333 Coyote Hill Road, Palo Alto, California 94304