Technical data
wscons(7D) Devices SunOS 5.5
If S is zero, ‘wrap-around’ mode is entered. ‘ESC [ 1 r’ exits back to scroll mode.
If a line-feed occurs on the bottom line in wrap mode, the cursor goes to the same
character position in the top line of the screen. When any line-feed occurs, the
line that the cursor moves to is cleared. This means that no scrolling occurs.
Wrap-around mode is not implemented in the window system.
The screen scrolls as fast as possible depending on how much data is backed up
waiting to be printed. Whenever a scroll must take place and the console is in
normal scroll mode (‘ESC [ 1 r’), it scans the rest of the data awaiting printing to
see how many line-feeds occur in it. This scan stops when any control character
from the set {VT, FF, SO, SI, DLE, DC1, DC2, DC3, DC4, NAK, SYN, ETB, CAN, EM,
SUB, ESC, FS, GS, RS, US} is found. At that point, the screen is scrolled by N lines
(N ≥ 1) and processing continues. The scanned text is still processed normally to
fill in the newly created lines. This results in much faster scrolling with scrolling
as long as no escape codes or other control characters are intermixed with the
text.
See also the discussion of the ‘Set scrolling’ (ESC[r)control function below.
CTRL-K (0xB) Reverse Line-feed
The cursor moves up one line, remainingat the same character position on the
line. If the cursor is already at the top line, nothinghappens.
CTRL-L (0xC) Form-feed (FF)
The cursor is positioned to the Home position (upper-left corner) and the entire
screen is cleared.
CTRL-M (0xD) Return (CR)
The cursor moves to the leftmost character position on the current line.
SPARC: Escape
Sequence Functions
CTRL-[ (0x1B) Escape (ESC)
This is the escape character. Escape initiates a multi-character control sequence.
ESC[#@ Insert Character (ICH)
Takes one parameter, # (default 1). Inserts # spaces at the current cursor position.
The tail of the current linestarting at the current cursor position inclusive is
shifted to the right by # character positions to make room for the spaces. The
rightmost # character positions shift off the line and are lost. The position of the
cursor is unchanged.
ESC[#A Cursor Up (CUU)
Takes one parameter, # (default 1). Moves the cursor up # lines. If the cursor is
fewer than # lines from the top of the screen, moves the cursor to the topmost
line on the screen. The character position of the cursor on the line is unchanged.
ESC[#B Cursor Down (CUD)
Takes one parameter, # (default 1). Moves the cursor down # lines. If the cursor
is fewer than # lines from the bottom of the screen, move the cursor to the last
line on the screen. The character position of the cursor on the line is unchanged.
ESC[#C Cursor Forward (CUF)
7D-402 modified 11 Nov 1993










