[clug] Terminal Control Sequences
duncan_roe at acslink.net.au
Sun Jul 4 15:59:51 MDT 2010
This works for me:
e c h o ' Ctrl+V ESC ] 2 ; H e l l o Ctrl+V Ctrl+G '
3 points to note:
1. You need to use echo so xterm sees the control sequence
2. You need to quote the string to escape the contained semicolon
3. You need to escape typed control characters with Ctrl+V to get them past bash
Cheers ... Duncan.
On Mon, Jul 05, 2010 at 12:53:53AM +1000, moncojhr wrote:
> Thanks for the input, so for instance with this:
> echo -e '\033]2;Hello\007'
> which is ESC ] 2 ; Hello BEL
> Am I able to actually type this in?
> So far i tried to type in the sequence
> ESC ] 2 ; H e l l o Ctrl+G
> But nothing happens? Where as echo -e '\033]2;Hello\007' does work, so...
> maybe ctrl+g is not inputing a BEL character?
> On Sun, Jul 4, 2010 at 3:53 AM, moncojhr <moncojhr at gmail.com> wrote:
> > Hi Everyone,
> > I have been looking into what exactly is available/what i can do with
> > control sequences within gnome-terminal.
> > Now I have practically no idea about "terminals" or the control sequences
> > themselves and everywhere i've looked seem to just have crazy stuff that
> > either, I'm typing incorrectly or do not work within gnome-terminal.
> > One of the things id like to know is if I can change the window title with
> > control sequences, and if I can, can i enter that sequence in a text file
> > and cat out the text file and have my window title change.
> > If you could give me any tips or where I should be looking for this
> > information it would be great.
> > Cheers!
> linux mailing list
> linux at lists.samba.org
Please avoid sending me Word or PowerPoint attachments.
More information about the linux