Translate

Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)
Image of Beginning Google Maps API 3
Image of Operating System Concepts
Image of Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)

Dynamically Updating Xterm Title using Ksh93

While it is easy to dynamically set your shell prompt and the title of your terminal window if you are using the bash shell, it is far more difficult to do so in the Korn Shell. Typically, as in Rich Lister’s How to change the title of an xterm, the offered solution is something like the following: HOST=`hostname` HOST=${HOST%%.*} PS1=’^[]0;${USER}@${HOST}: ${PWD##${HOME}/}^Gksh$ ‘ The problem with such a solution is that it sets the prompt and the xterm window title only once. If you wish to dynamically set the xterm title and the shell prompt, you must use a Korn shell