Having studied the


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

   t=`echo -ne "\033[21t"`
   for i in 5 4 3 2 1
     echo -ne "\033]2;...wait $i...\07"
     sleep 1
   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

Reply via email to