escape - generate terminal escape sequence


escape function [ function... ]


Escape is used to perform actions on a terminal. The environment variable
TERM (see environ(5)) is used to determine the terminal type. If TERM
is not set to a valid terminal name, no action is performed. The
functions performed by escape are:

home home cursor
cleareos clear to end of screen
cleareol clear to end of line
curright move cursor right one position
curleft move cursor left one position
curup move cursor up one position
curdown move cursor down one position
rollup scroll screen up one line
rolldown scroll screen down one line
insline perform insert line function
lastesc same as endblink
delline perform delete line function
inschar start insert character function
endinschar end insert character function
delchar perform delete character function
clearall erase entire screen
initterm initialize terminal
restore restore terminal
white start reverse video field
endwhite end reverse video field
firstesc home cursor
black start normal video field
endblack end normal video field
underline start underlined field
endunderline end underlined field
blink start blinking field
endblink end blinking field
bell ring terminal bell
movcur r c move cursor to row(r), and column(c)

The movcur function requires two more arguments specifying the row and
column to which the cursor is to be moved. The row and column arguments
start at 1.

It is permissible to list several functions on the command line. They
will be executed in the order listed.

Since these functions are very terminal-dependent, some terminals may not
implement all the listed functions.


or terminfo(4).
C/Base Utilities Manual Chapter 2, Terminal Independent I\O.


When determining a terminal's characteristics, the C/Base software uses
terminal definitions created by termset(C-1) if one exists. If a terminal
definition is not defined by termset, the operating system local terminal
information utilities is used. When running Unix System V operating
system, C/Base software (more often than not) uses terminfo(4). Otherwise,
terminal definitions are defined by termcap(5) with terminal definitions
stored in the /etc/termcap file.