[lug] Docs on terminal hacking?
Scott A. Herod
herod at interact-tv.com
Fri Sep 28 11:39:13 MDT 2001
Thanks Ken,
It looks like the control codes are not a complete match. But I
have got my little clock test script working now. I guess it just
takes a bit of experimenting.
Scott
(Note 'G' instead of 'C'. Also, 'H' apparently isn't supported. )
#! /bin/sh
RES_COL=20
RES_ROW=30
clear
while [ true ]
do
spam=`date`
clear
/bin/echo -en \\033[${RES_ROW}G
/bin/echo -en \\033[${RES_COL}B
/bin/echo -n ${spam}
sleep 1
done
Ken Weinert wrote:
>
> These are commonly known as the ANSI (or perhaps VT100) control codes.
> Here's a reference to the most common ones:
>
> http://www.fh-jena.de/~gmueller/Kurs_halle/esc_vt100.html
>
More information about the LUG
mailing list