displaying folder name in xterm title

2002-07-04 Thread Martin Man

hi mutters,

is there a way to change xterm's title according to the folder currently
opened in a mutt so that it updates correctly whenever the folder inside 
of mutt is changed?

probably some folder-hook magic that can execute shell commands and issue
appropriate echo with escape sequences and folder's name to change the title?

thanx,
martin
-- 
King of Swamp Castle: This is supposed to be a happy occasion.
  Let's not bicker and argue about who killed who.
-- Monty Python and the Holy Grail



msg29372/pgp0.pgp
Description: PGP signature


Re: displaying folder name in xterm title

2002-07-04 Thread Aragon Gouveia

Hi,

There must be a way. It should just be a matter of sending the right escape
sequence to the terminal. You can probably do this in the status_format.

I think the escape sequences are as follows:

\033]0;whatever you want in the title\007

There are also escape sequences for the window name and the icon name.
Probably \033]1; and \033]2; respectively. I'm not sure which is which. But
googling it should reveal something.


Regards,
Aragon



| By Martin Man [EMAIL PROTECTED]
|  [ 2002-07-04 15:38 +0200 ]
 hi mutters,
 
 is there a way to change xterm's title according to the folder currently
 opened in a mutt so that it updates correctly whenever the folder inside 
 of mutt is changed?
 
 probably some folder-hook magic that can execute shell commands and issue
 appropriate echo with escape sequences and folder's name to change the title?
 
 thanx,
 martin
 -- 
 King of Swamp Castle: This is supposed to be a happy occasion.
   Let's not bicker and argue about who killed who.
   -- Monty Python and the Holy Grail





Re: displaying folder name in xterm title

2002-07-04 Thread Thomas Dickey

On Thu, Jul 04, 2002 at 04:17:13PM +0200, Aragon Gouveia wrote:
 Hi,
 
 There must be a way. It should just be a matter of sending the right escape
 sequence to the terminal. You can probably do this in the status_format.

The question's come up a few times - I don't recall the answer, myself.
It has to be done outside the normal screen operations since those would
translate the escape sequence into readable form.
 
 I think the escape sequences are as follows:
 
 \033]0;whatever you want in the title\007
 
 There are also escape sequences for the window name and the icon name.
 Probably \033]1; and \033]2; respectively. I'm not sure which is which. But
 googling it should reveal something.

That's likely (they're documented in a number of places including of course
xterm).

-- 
Thomas E. Dickey [EMAIL PROTECTED]
http://invisible-island.net
ftp://invisible-island.net



Re: displaying folder name in xterm title

2002-07-04 Thread Dan Boger

On Thu, Jul 04, 2002 at 03:36:20PM +0200, Martin Man wrote:
 is there a way to change xterm's title according to the folder currently
 opened in a mutt so that it updates correctly whenever the folder inside 
 of mutt is changed?

yup - look at the xtitle patch, linked from the mutt.org patches page:

http://www.robots.ox.ac.uk/~neil/mutt/



-- 
Dan Boger
[EMAIL PROTECTED]



msg29378/pgp0.pgp
Description: PGP signature