Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
curses_tty, baudrate, beep, flash, curs_set, def_prog_mode, reset_prog_mode, def_shell_mode, reset_shell_mode, echo, noecho, delay_output, erasechar, flushinp, gettmode, halfdelay, has_ic, has_il, idcok, idlok, intrflush, noqiflush, qiflush, killchar, meta, napms, nl, nonl, cbreak, nocbreak, raw, noraw, typeahead, savetty, resetty — curses terminal manipulation routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>baudrate(void);
beep(void);
flash(void);
curs_set(int visibility);
def_prog_mode(void);
reset_prog_mode(void);
def_shell_mode(void);
reset_shell_mode(void);
echo(void);
noecho(void);
delay_output(int ms);
erasechar(void);
flushinp(void);
gettmode(void);
has_ic(void);
has_il(void);
idcok(WINDOW *win, bool flag);
idlok(WINDOW *win, bool flag);
intrflush(WINDOW *win, bool flag);
noqiflush(void);
qiflush(void);
killchar(void);
meta(WINDOW *win, bool flag);
napms(int ms);
nl(void);
nonl(void);
cbreak(void);
nocbreak(void);
halfdelay(int);
raw(void);
noraw(void);
typeahead(int filedes);
savetty(void);
resetty(void);
DESCRIPTION
These functions manipulate curses terminal settings.- Visibility
- Effect
- 0
- cursor is invisible.
- 1
- cursor is normal visibility
- 2
- cursor is high visibility
- If filedes is a valid file descriptor, typeahead is enabled during refresh; Curses periodically checks filedes for input and aborts the refresh if any character is available. The value of filedes need not be the file descriptor on which the refresh is occurring.
- If filedes is -1, Curses does not check for typeahead during refresh.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values:- OK
- The function completed successfully.
- ERR
- An error occurred in the function.