Page
Library
Module
Module type
Parameter
Class
Class type
Source
CursesSource* Bindings to the ncurses library. * * Beware, all coordinates are passed y first, then x. * * Functions whose name start with a "w" take as first argument the window the * function applies to. * Functions whose name start with "mv" take as first two arguments the * coordinates y and x of the point to move the cursor to. For example * mvaddch y x ch is the same as move y x; addch ch.
Windows.
Screens.
Terminals.
Characters. Usual characters can be converted from/to chtype using * char_of_int and int_of_char. See also get_acs_codes for characters * useful for drawing and the Key module for special input characters.
Attributes are lorings of flags which are defined in the A module.
A return value. false means that an error occured.
Restore the terminal (should be called before exiting).
Has endwin been called without any subsequent call to werefresh?
Add a sequence of characters at the current position. See also addstr.
Turn off the attributes given in argument (see the A module).
Turn on the attributes given in argument.
Set the attributes.
chgat n attr color changes the attributes of n characters.
insdelln n inserts n lines above the current line if n is positive or * deletes -n lines if n is negative.
Read a character in a window.
newwin l c y x create a new window with l lines, c columns. The upper * left-hand corner is at (x,y).
subwin l c y x create a subwindow with l lines and c columns at * screen-relative position (x,y).
Same as subwin excepting that the position (x,y) is relative to the * parent window.
If syncok is called with true as second argument, wsyncup is called * automatically whenever there is a change in the window.
Clear a window.
val border :
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
unitDraw a box around the edges of a window.
A pad is like a window except that it is not restricted by the screen size, * and is not necessarily associated with a particular part of the screen.
Enable line buffering (waits for characters until newline is typed).
If called with true as second argument, the next call to wrefresh with * this window will clear the streen completely and redraw the entire screen * from scratch.
Sets the mouse mask.
Get the speed of a terminal (in bits per second).
Get user's current erase character.
Has the terminal insert- and delete-character capabilites?
Has the terminal insert- and delete-line capabilites?
Get user's current line kill character.
Get a description of the terminal.
Save the current terminal modes as the "program" state for use by the * reser_prog_mod and reset_shell_mode functions.