Re: ANN: xterm patch #236

Eeri Kask <[email protected]> Thu, 31 Jul 2008 14:35:14 +0200
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
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