home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
rescue
/
usr
/
bin
/
termprobes
< prev
next >
Wrap
Text File
|
2006-11-29
|
681b
|
36 lines
#!/bin/bash
# Peter Poeml <poeml@suse.de>
DA="\033[c"
OLD_TERM_ID="\033Z"
DA1="\033[1c"
EXT_DA="\033[?1;1c"
SEC_DA="\033[>c"
ANSWERBACK="\005"
TITLE="\033[21;t"
GO_LEFT="\033[80D"
GO_MIDDLE="$GO_LEFT\033[15C"
GO_RIGHT="$GO_LEFT\033[40C"
echo
echo -e Probe "$GO_LEFT$GO_MIDDLE" Escape sequence "$GO_LEFT$GO_RIGHT" Reply
for i in DA OLD_TERM_ID DA1 EXT_DA SEC_DA ANSWERBACK TITLE; do
echo
#eval "echo -en $i " " \$$i"
eval "echo -en $i\"$GO_MIDDLE\"; \
echo -n \$$i; \
echo -en \"$GO_RIGHT\"\$$i"
test -x /bin/usleep && usleep 500000 || sleep 1
done
test -x /usr/bin/setterm && setterm -cursor on
echo -e "\n\npress enter to quit"
IFS="\n"; read a