[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cursorpos and ^P
- To: David C. Plummer <DCP at MIT-MC>
- Subject: Cursorpos and ^P
- From: Guy.Steele at CMU-10A
- Date: Mon, 22 Jun 81 15:39:00 GMT
- Cc: bug-lisp at MIT-MC
- In-reply-to: David C. Plummer's message of 21 Jun 81 19:11-EST
- Original-date: 22 June 1981 1139-EDT (Monday)
It wasn't really intended that you output your own ^P codes
for two reasons:
(1) If a new ^P code is invented, CURSORPOS should be upgraded.
(2) Outputting your own ^P codes on an ASCII TTY object will
probably screw up the CHARPOS and/or LINENUM counts, which is
why you want point (1) to happen.
ASCII mode output is intended to be relatively abstract and
portable. If you go outputting your own ^P codes, it isn't
going to work on a TOPS-20 -- maybe not even on a LISP Machine.
So you're provided with the interface functions TYO and
CURSOROS, which can be implemented on many systems reasonably.
If you are willing to be non-portable, then use IMAGE or FIXNUM
mode.
--Guy