The escape function sends terminal escape sequences to the terminal.
The first parameter passed to escape is the function to be performed.
The functions that can be performed by escape are defined in the include
file <cbase\escape.h>. The escape function writes the terminal
escape sequence from the terminal definition (or the internal definition if
TERM is not set) on standard output and returns a positive value. If the desired
function is not defined, escape returns a negative value to indicate
the function cannot be performed by the terminal.