Which environment variable?
dread at aceweb.com
Mon Jan 14 02:29:19 PST 2008
On Mon, 14 Jan 2008 09:35:41 +0200 Matiss said:
> Is there such environment variable, which changes window title for
> putty? I mean, MC is able to change it to working dir I think.. How
> do I change that title to let's say server name for my shell?
> Thanks :)
Or for the terminally lazy,
# gets/sets xterm title
usage="Usage : $me [pwd | new title ... ] ('pwd' sets it to the current directory)";
while [ $# -gt 0 ]
case "$1" in
--help | -help | -h | -\?)
-*) echo "$me: Unrecognized switch: $1 ($me -help to show valid options)";
while [ $# -gt 1 ]
if [ -n "$Title" ]
xprop -id $WINDOWID -set WM_NAME "$Title";
Title=`xprop -id $WINDOWID | grep WM_NAME | cut -d= -f2`
echo $Adjective 'title :' $Title
Don Read dread at aceweb.com
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
More information about the freebsd-questions