Re: backup terminal title

2010-02-07 Thread Dominic Fandrey
Dominic Fandrey wrote: per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done without using anything outside the base system. There is an escape

Re: backup terminal title

2010-02-07 Thread Erik Trulsson
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: Dominic Fandrey wrote: per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done

Re: backup terminal title

2010-02-07 Thread Dominic Fandrey
Erik Trulsson wrote: On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: Dominic Fandrey wrote: per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this

Re: backup terminal title

2010-02-07 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 10:04:49PM -0800, per...@pluto.rain.com wrote: Warren Block wbl...@wonkity.com wrote: What's the sequence for reading the terminal title? If I remembered it I'd have included it :) The first 3 results from Googling xterm escape sequences are This is where to start

Re: backup terminal title

2010-02-07 Thread Thomas Dickey
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: I finally got it: printf \033[22;0t This stores the current icon and window titles on a stack. printf \033[23;0t This restores them from the stack. It works fine with xterm, has no effect on rxvt-unicode (which

Re: backup terminal title

2010-02-07 Thread Thomas Dickey
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: I finally got it: printf \033[22;0t This stores the current icon and window titles on a stack. printf \033[23;0t This restores them from the stack. It works fine with xterm, has no effect on rxvt-unicode (which

backup terminal title

2010-02-06 Thread Dominic Fandrey
I just started to wonder how portmaster changes the window title of my terminal and why it doesn't change it back when it terminates. Some digging in the portmaster code showed up an escape sequence: printf \033]0;%s\007 YOUR TEXT GOES HERE Unfortunately I am entirely clueless as to how one

Re: backup terminal title

2010-02-06 Thread Matthias Apitz
El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey escribió: I just started to wonder how portmaster changes the window title of my terminal and why it doesn't change it back when it terminates. Some digging in the portmaster code showed up an escape sequence:

Re: backup terminal title

2010-02-06 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 01:38:11PM +0100, Dominic Fandrey wrote: I just started to wonder how portmaster changes the window title of my terminal and why it doesn't change it back when it terminates. Some digging in the portmaster code showed up an escape sequence: printf \033]0;%s\007 YOUR

Re: backup terminal title

2010-02-06 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 01:55:55PM +0100, Matthias Apitz wrote: El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey escribió: I just started to wonder how portmaster changes the window title of my terminal and why it doesn't change it back when it terminates.

Re: backup terminal title

2010-02-06 Thread Dominic Fandrey
Matthias Apitz wrote: El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey escribió: I just started to wonder how portmaster changes the window title of my terminal and why it doesn't change it back when it terminates. Some digging in the portmaster code showed up

Re: backup terminal title

2010-02-06 Thread Matthew Seaman
On 06/02/2010 13:55, Dominic Fandrey wrote: Nice, but I need something that works with base system components. Like an escape sequence that causes the terminal to reset its title. Something like this for tcsh: set prompt = '%{\033]0;%...@%m:%/\007%}%B%m%b:%c03:%# ' Sets the window title to

Re: backup terminal title

2010-02-06 Thread Dominic Fandrey
Matthew Seaman wrote: On 06/02/2010 13:55, Dominic Fandrey wrote: Nice, but I need something that works with base system components. Like an escape sequence that causes the terminal to reset its title. Something like this for tcsh: set prompt = '%{\033]0;%...@%m:%/\007%}%B%m%b:%c03:%#

Re: backup terminal title

2010-02-06 Thread Dominic Fandrey
Dominic Fandrey wrote: Matthew Seaman wrote: On 06/02/2010 13:55, Dominic Fandrey wrote: Nice, but I need something that works with base system components. Like an escape sequence that causes the terminal to reset its title. Something like this for tcsh: set prompt =

Re: backup terminal title

2010-02-06 Thread perryh
I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done without using anything outside the base system. There is an escape sequence which will cause the terminal to echo back its

Re: backup terminal title

2010-02-06 Thread Warren Block
On Sat, 6 Feb 2010, per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done without using anything outside the base system. There is an escape sequence

Re: backup terminal title

2010-02-06 Thread perryh
Warren Block wbl...@wonkity.com wrote: What's the sequence for reading the terminal title? If I remembered it I'd have included it :) The first 3 results from Googling xterm escape sequences are rtfm.etla.org/xterm/ctlseq.html www.faqs.org/docs/Linux-mini/Xterm-Title.html

Re: backup terminal title

2010-02-06 Thread Warren Block
On Sat, 6 Feb 2010, per...@pluto.rain.com wrote: Warren Block wbl...@wonkity.com wrote: What's the sequence for reading the terminal title? If I remembered it I'd have included it :) I did some unsuccessful searching for query xterm title earlier today. The first 3 results from Googling

Re: backup terminal title

2010-02-06 Thread Dominic Fandrey
per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done without using anything outside the base system. There is an escape sequence which will cause