Eeri Kask
Thu, 31 Jul 2008 05:40:31 -0700
Hello, Having studied the http://invisible-island.net/xterm/ctlseqs/ctlseqs.html document I discovered several very useful xterm escape-sequencefeatures. 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