Xterm title

Thomas Zajic zlatko at gmx.at
Fri Dec 27 14:54:05 UTC 2002


Hi,

I really like mc's new feature to set the Xterm title to mc's current
directory. Still, I've got one minor cosmetical request concerning this
feature: would it be possible to save the original Xterm title when mc
starts, and restore it when mc quits?

I'm using mcedit to edit my mails/posts in Mutt and Slrn, with matching
Xterm titles (ie. "Mutt" for Mutt, and "Slrn" for Slrn :-). Once I edit
a mail/post, though, mcedit changes the Xterm title to "mc - ~", and it
stays that way until I quit mutt/slrn - which basically makes the Xterms
running Mutt/Slrn indistinguishable from the "ordinary" ones running mc.

I haven't looked at the code yet, so I don't know how easy or hard that
would be to implement. As I said, it's only a cosmetical thing, so I'd
just turn the Xterm title feature off in mc if it turned out be a problem.
It sure would be nice to have it both, though. :-)

Just for the record, here's the command lines I use to run Slrn/Mutt
from IceWM's toolbar:

| [zlatko at disclosure]:~/tmp$ egrep "(mutt|slrn)" ~/.icewm/toolbar 
| prog Mutt mutt2 xterm -ls -tn xterm-color -T "Mutt" -name xterm_mutt -e mutt
| prog Slrn slrn2 xterm -ls -tn xterm-color -T "Slrn" -name xterm_slrn -e slrn

TIA & $SEASONS_GREETINGS,
Thomas
-- 
=-------------------------------------------------------------------------=
-  Thomas "ZlatkO" Zajic    <zlatko at gmx.at>     Linux-2.4.19 & Mutt-1.4i  -
-  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
=-------------------------------------------------------------------------=



More information about the mc-devel mailing list