home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsl!davel
- From: davel@cbnewsl.cb.att.com (David Loewenstern)
- Newsgroups: comp.lang.lisp
- Subject: Re: How to send out ANSI code ?
- Message-ID: <1992Dec21.223203.261@cbnewsl.cb.att.com>
- Date: 21 Dec 92 22:32:03 GMT
- References: <1992Dec17.113424.7819@debbie.cc.nctu.edu.tw>
- Organization: AT&T Bell Labs, Whippany, NJ
- Lines: 28
-
- ... On Thu, 17 Dec 1992 11:34:24 GMT, GHOST@cc.nctu.edu.tw (Michael Huang) said:
-
-
- } When I want to use the ANSI code to control the terminal position,
- } I tried the following program
-
- } (prog () (code-char 27) (princ "[5,5H"))
-
- } The result is that
- }
- } #\Esc
- } [5,5H
-
-
- Odd. I would have expected it to print just
-
- [5,5H
-
- Anyway, (write-char #\Esc) will do what you want:
-
- (progn
- (write-char #\Esc)
- (princ "[5,5H"))
-
- These opinions are shareware. If you like the product,
- please send your $0.02 to
- David Loewenstern
- <David.Loewenstern@att.com>
-