Technical data
wscons(7D) Devices SunOS 5.5
cursor position. Shifts to the left by # character positions the tail of the current
line from the current cursor position inclusive to the end of the line. Blanks are
shifted into the rightmost # character positions. The position of the cursor on the
screen is unchanged.
ESC[#m Select Graphic Rendition (SGR)
Takes one parameter, # (default 0). Note: unlike most escape sequences, the
parameter defaults to zero if omitted. Invokes the graphic rendition specified by
the parameter. All following printing characters in the data stream are rendered
according to the parameter until the next occurrence of this escape sequence in
the data stream. Currently only two graphic renditions are defined:
0 Normal rendition.
7 Negative (reverse) image.
Negative image displays characters as white-on-black if the screen mode is
currently black-on white, and vice-versa. Any non-zero value of # is currently
equivalent to 7 and selects the negative image rendition.
ESC[p Black On White (SUNBOW)
Takes no parameters. Sets the screen mode to black-on-white. If the screen
mode is already black-on-white, has no effect. In this mode spaces display as
solid white, other characters as black-on-white. The cursor is a solid black block.
Characters displayed in negativeimage rendition (see ‘Select Graphic Rendition’
above) is white-on-black in this mode. This is the initial settingof the screen
mode on reset.
ESC[q White On Black (SUNWOB)
Takes no parameters. Sets the screen mode to white-on-black. If the screen
mode is already white-on-black, has no effect. In this mode spaces display as
solid black, other characters as white-on-black. The cursor is a solid white block.
Characters displayed in negativeimage rendition (see ‘Select Graphic Rendition’
above) is black-on-white in this mode. The initial setting of the screen mode on
reset is the alternative mode, black on white.
ESC[#r Set scrolling (SUNSCRL)
Takes one parameter, # (default 0). Sets to # an internal register which deter-
mines how many lines the screen scrolls up when a line-feed function is per-
formed with the cursor on the bottom line. A parameter of 2 or 3 introduces a
small amount of ‘‘jump’’ when a scroll occurs. A parameter of 34 clears the
screen rather than scrolling. The initial setting is 1 on reset.
A parameter of zero initiates ‘‘wrap mode’’ instead of scrolling. In wrap mode, if
a linefeed occurs on the bottom line, the cursor goes to the same character posi-
tion in the top line of the screen. When any linefeed occurs, the line that the cur-
sor moves to is cleared. This means that no scrolling ever occurs. ‘ESC [ 1 r’ exits
back to scroll mode.
For more information, see the description of the Line-feed (CTRL-J) control func-
tion above.
7D-404 modified 11 Nov 1993










