Next: Refresh routines, Previous: Scroll a window, Up: The basic curses library [Contents][Index]
The baudrate
routine returns the output speed of the terminal.
The number returned is in bits per second, for example 9600, and is an
integer. It could return #f
if this screen is no longer valid.
The erasechar routine returns the user’s current erase character. If
the terminal is a dumb terminal and has no erase character, it will
return #f
.
The has-ic?
routine is true if the terminal has insert- and
delete- character capabilities.
The has-il?
routine is true if the terminal has insert- and
delete-line capabilities, or can simulate them using scrolling
regions. This might be used to determine if it would be appropriate
to turn on physical scrolling using scrollok!
.
The killchar routine returns the user’s current line kill character.
If the terminal has no killchar, it will return #f
.
The longname
routine returns a string that is a
verbose description of the current terminal.
The termattrs
function return a logior
of all video
attributes supported by the terminal using the standard A_XXX
constants. The term-attrs
function is nearly identical, except
that it tests rarely used attributes that might someday having to do
with wide characters: A_HORIZONTAL
, A_LEFT
,
A_LOW
, A_RIGHT
, A_TOP
, and A_VERTICAL
.
The termname
routine returns the name of the current terminal,
which was set by either initscr
or setupterm
.
Next: Refresh routines, Previous: Scroll a window, Up: The basic curses library [Contents][Index]