Technical data
wscons(7D) Devices SunOS 5.5
The Sun console displays a cursor which marks the current line and character position on
the screen. ASCII characters between 0x20 (space) and 0x7E (tilde) inclusive are printing
characters — when one is written to the Sun console (and is not part of an escape
sequence), it is displayed at the current cursor position and the cursor moves one posi-
tion to the right on the current line.
Later PROM revisions have the full 8-bit ISO Latin-1 (ISO 8859-1) character set, not just
ASCII. Earlier PROM revisions display characters in the range 0xA0 − 0xFE as spaces.
If the cursor is already at the right edge of the screen, it moves to the first character posi-
tion on the next line. If the cursor is already at the right edge of the screen on the bottom
line, the Line-feed function is performed (see CTRL-J below), which scrolls the screen up
by one or more lines or wraps around, before moving the cursor to the first character
position on the next line.
SPARC: Control
Sequence Syntax
The Sun console defines a number of control sequences which may occur in its input.
When such a sequence is written to the Sun console, it is not displayed on the screen, but
effects some control function as described below, for example, moves the cursor or sets a
display mode.
Some of the control sequences consist of a single character. The notation
CTRL-X
for some character X, represents a control character.
Other ANSI control sequences are of the form
ESC [ paramschar
Spaces are included only for readability; these characters must occur in the given
sequence without the intervening spaces.
ESC represents the ASCII escape character (ESC, CTRL-[, 0x1B).
[ The next character is a left square bracket ‘[’ (0x5B).
params are a sequence of zero or more decimal numbers made up of digits between 0
and 9, separated by semicolons.
char represents a function character, which is different for each control sequence.
Some examples of syntactically valid escape sequences are (again, ESC represent the sin-
gleASCII character ‘Escape’):
ESC[m select graphic rendition with default parameter
ESC[7m select graphic rendition with reverse image
ESC[33;54H set cursor position
ESC[123;456;0;;3;B move cursor down
Syntactically validANSI escape sequences which are not currently interpreted by the Sun
console are ignored. Control characters which are not currently interpreted by the Sun
console are also ignored.
Each control function requires a specified number of parameters, as noted below. If
fewer parameters are supplied, the remaining parameters default to 1, except as noted in
the descriptions below.
7D-400 modified 11 Nov 1993










