package curses
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c9126f9798f0c5b3beb05efe89c7713cf655c1ffbe040a52f218aeba291922af
sha512=158626f3fd6931f30482a47ab149990ff49334c8c0dc966eb07d92f22e87faaab3fd48ed7788bbc5a77f82cb6163520588ce55ab53456bca22994f147c7e00c5
doc/curses/Curses/index.html
Module 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.
Initialization functions
Restore the terminal (should be called before exiting).
Has endwin been called without any subsequent call to werefresh?
Operations on characters
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.
Background
Operations on lines
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.
Windows
Window manipulations
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.
Decorations
val border :
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
chtype ->
unitDraw a box around the edges of a window.
Pads
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.
Colors
Input/output options
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.
Soft-label keys
Sets the mouse mask.
Misc
Terminal
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.