screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with mutt and xterm-title (new user)


From: Micah Cowan
Subject: Re: problems with mutt and xterm-title (new user)
Date: Thu, 12 Mar 2009 13:25:15 -0700
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

address@hidden wrote:
> On Thu, Mar 12, 2009 at 17:42, Micah Cowan <address@hidden> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> address@hidden wrote:
>>> I've been playing around with screen for the last two days and like it so 
>>> far.
>>>
>>> But there is one thing that bothers me: When I start mutt from my
>>> shell (bash, with gnome-terminal), the terminal title changes to mutt:
>>> = INBOX.
>>>
>>> That's actually very good. What's not so good is the fact that this
>>> title remains the terminal-title even after I've quit mutt.
>> This doesn't sound like a screen issue to me. Sounds like your mutt
>> config would be doing the same to the xterm title if you were running
>> under xterm.
>>
>> Mutt, or some configuration in mutt, is setting the title. If anything
>> had the responsibility to set it back to the way it was, it would
>> probably be mutt on exit, but that involves a bit of work. Maybe this
>> hack was intended to work with common shell prompt setups that change
>> the terminal title to the current directory, etc. You could go with one
>> of those, or you could invoke mutt in a wrapper that resets the title to
>> whatever you want it to be.
>>
>>  printf '\033]0;%s\a' 'Whatever you want'
> 
> I don't know if that's related to mutt, the same thing happens when I
> ssh to a machine. After I exit, the title still says address@hidden

(Please keep discussions on the list, so everyone can chime in)

To be clear: screen does _not_ know that you're running ssh, or mutt, or
anything like that. If the title changes, it's because those changes
were made by mutt and ssh (or possibly your shell). The termcapinfo line
in your .screenrc does play a role in that, but only in telling those
apps how to make those changes. screen has no idea when mutt or ssh
starts or stops, and so can't possibly unset the title after they exit.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm5b6sACgkQ7M8hyUobTrE+AQCfSZMx2x2eyfGuxEc4FEjOSknP
1lAAnA6mG4f+M2cprJii7lI6XxsQVnv3
=zCHs
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]