MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: Ansi Escape codes
At 10:23 PM 3/7/96 PST, slayer@kaiwan.com wrote:
>The ANSI code for clearing the screen is escape + "[2j", although some
>clients don't seem to like it. It doesn't work for me in TinyFugue unless I
>/set emulation raw and that's generally not a good idea.
>If you have dos you can check out the codes for ansi by typing 'help
>ansi.sys' at a dos prompt.
Actually, the code is with a capitol J. ESC[2J. That might be why
TinyFugue doesn't like it.
Here are the codes I can remember:
ESC[#A - Moves cursor up #, or if # is omitted, moves up 1.
ESC[#B - -- down --
ESC[#C - -- right --
ESC[#D - -- left --
ESC[#;#K - Moves cursor to #,# on screen.
ESC[#;#r - Scrolling area is from line # to #. Cursor is moved
to the top of the scrolling area.
ESC[r - Set text-scroll size to full screen and move cursor to top.
ESCM - Moves the cursor up one. If it's at the top of the screen,
the text scrolls backwards one line. (Exclude the [)
This doesn't work with true ansi. Just vt100 and up.
ESC[#m - Sets text attributes. You may include more than 1 code,
seperate #'s with semicolons (;)
Attributes:
1 - Bold
4 - Underline
6 - Blink(???)
7 - Inverse
8 - Concealed (invisible)
30 - Black Text
31 - Red Text
32 - Green Text
33 - Yellow/brown Text
34 - Blue Text
35 - Purple Text
36 - Cyan Text
37 - White Foreground
40 - Black Background
41 - Red Background
42 - Green Background
43 - Yellow/brown Background
44 - Blue Background
45 - Purple Background
46 - Cyan Background
47 - White Background
- Kipp
-----BEGIN GEEK CODE BLOCK-----
GCS/CC d- s+:- a16 C++ UL++++ P+ L++ E-? W+ !N--@ !o-- K->K++++++
w++(--) O- M-- V--? PS++(+) PE(--) Y+ PGP-? t+ 5(+) X++ R+++(*)
!tv b+ DI++++ D++++ G e* h!()(*) r+ !y+
------END GEEK CODE BLOCK------
-----BEGIN NOT SO GEEKY BLOCK-----
MOO projects:
RPG Minimal.db: paradigm.microwave.com 5000
MOO2000: moo.microwave.com 2000
MundoHispano: europa.syr.edu 8888
------END NOT SO GEEKY BLOCK------
Follow-Ups:
Home |
Subject Index |
Thread Index