Technical data

SunOS 5.5 Devices wscons(7D)
Takes one parameter, # (default 1). Moves the cursor to the right by # character
positions on the current line. If the cursor is fewer than # positions from the right
edge of the screen, moves the cursor to the rightmost position on the current line.
ESC[#D Cursor Backward (CUB)
Takes one parameter, # (default 1). Moves the cursor to the left by # character
positions on the current line. If the cursor is fewer than # positions from the left
edge of the screen, moves the cursor to the leftmost position on the current line.
ESC[#E Cursor Next Line (CNL)
Takes one parameter, # (default 1). Positions the cursor at the leftmost character
position on the #-th line below the current line. If the current line is less than #
lines from the bottom of the screen, positions the cursor at the leftmost character
position on the bottom line.
ESC[#1;#2f Horizontal And Vertical Position (HVP)
or
ESC[#1;#2H Cursor Position (CUP)
Takes two parameters, #1 and #2 (default 1, 1). Moves the cursor to the #2-th
character position on the #1-th line. Character positions are numbered from 1 at
the left edge of the screen; line positions are numbered from 1 at the top of the
screen. Hence, if both parameters are omitted, the default action moves the cur-
sor to the home position (upper left corner). If only one parameter is supplied,
the cursor moves to column 1 of the specified line.
ESC[J Erase in Display (ED)
Takes no parameters. Erases from the current cursor position inclusive to the
end of the screen. In other words, erases from the current cursor position
inclusive to the end of the current line and all linesbelow the current line. The
cursor position is unchanged.
ESC[K Erase in Line (EL)
Takes no parameters. Erases from the current cursor position inclusive to the
end of the current line. The cursor position is unchanged.
ESC[#L Insert Line (IL)
Takes one parameter, # (default 1). Makes room for # new lines starting at the
current line by scrolling down by # lines the portion of the screen from the
current line inclusive to the bottom. The # new lines at the cursor are filled with
spaces; the bottom # lines shift off the bottom of the screen and are lost. The
position of the cursor on the screen is unchanged.
ESC[#M Delete Line (DL)
Takes one parameter, # (default 1). Deletes # lines beginning with the current
line. The portion of the screen from the current line inclusive to the bottom is
scrolled upward by # lines. The # new lines scrolling onto the bottom of the
screen are filled with spaces; the # old lines beginning at the cursor line are
deleted. The position of the cursor on the screen is unchanged.
ESC[#P Delete Character (DCH)
Takes one parameter, # (default 1). Deletes # characters starting with the current
modified 11 Nov 1993 7D-403