[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xfree86-devel
Subject:    Re: ANN: xterm patch #236
From:       Eeri Kask <Eeri.Kask () inf ! tu-dresden ! de>
Date:       2008-07-31 12:35:14
Message-ID: 4891B182.1030703 () inf ! tu-dresden ! de
[Download RAW message or body]

Hello,

Having studied the

    http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

document I discovered several very useful xterm escape-sequence
features.  There is one of which I am not able to put to work properly 
though, so here is the puzzle.  :-)


Lets consider the sequence category

    CSI P s ; P s ; P s t     Window manipulation ...

and in particular

    P s = 2 1   -> Report xterm window’s title as OSC l title ST

(It appears  " OSC l title ST "  means  " ESC] l title ESC\ ")


Obviously something like

    #!/bin/sh
    t=`echo -ne "\033[21t"`
    for i in 5 4 3 2 1
    do
      echo -ne "\033]2;...wait $i...\07"
      sleep 1
    done
    echo "$t"


doesn't work as l above needs to be replaced by 2; and ESC\ by \07 
provided this is kind of approach is possible at all.

Is there any way to use this above escape sequence in the sense as 
apparent from the above shell script? ... or how is this sequence 
supposed to be used?

Thanks in advance for your time,

     Eeri Kask

_______________________________________________
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic