Article View: comp.windows.x
Article #36839Re: changing titles
From: Casey Leedom
Date: Wed, 14 Feb 1990 20:16
Date: Wed, 14 Feb 1990 20:16
24 lines
1349 bytes
1349 bytes
| From: battlewr@BATTLE.ESD.ORNL.GOV (David L. Battle) | | Chris Keane writes: | | > alias cd 'cd \!* ; echo ^[]2\;$HOSTNAME\:$cwd^G' | > | > which changes my window title to where ever I am, eg zeus:/system/usr/keane | | Neat. The only problem is that after you come back from an su, rlogin, | telnet, etc. session the title bar isn't updated. And David's solution is full of special cases. Why don't you just put the window title control string in you prompt and be done with it? That way you leave it to your shell to decide which prompt to display and when to display it. Try something like: alias cd 'cd \!*; setprompt' alias pushd 'pushd \!*; setprompt' alias popd 'popd \!*; setprompt' alias setprompt 'set prompt = "^[]2;$HOSTNAME\:$cwd^G% "' (Actually my setprompt does a lot more than this, but you get the idea.) Casey
Technical Details
Message-ID:
<48619@lll-winken.LLNL.GOV>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!gauss.llnl.gov!caseyReferences:
<9002141515.AA12728@battle.ESD.ORNL.GOV>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!gauss.llnl.gov!casey From: casey@gauss.llnl.gov (Casey Leedom) Newsgroups: comp.windows.x Subject: Re: changing titles Message-ID: <48619@lll-winken.LLNL.GOV> Date: 14 Feb 90 20:16:48 GMT References: <9002141515.AA12728@battle.ESD.ORNL.GOV> Sender: usenet@lll-winken.LLNL.GOV Reply-To: casey@gauss.llnl.gov.UUCP (Casey Leedom) Organization: Lawrence Livermore National Laboratory Lines: 24