Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
curses_screen, filter, ripoffline, use_env, newterm, set_term, delscreen, endwin, initscr, isendwin, is_term_resized, resize_term, resizeterm, setterm, set_tabsize — curses terminal and screen routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>filter(void);
ripoffline(int line, int (*init)(WINDOW *win, int cols));
use_env(bool value);
newterm(char *type, FILE *outfd, FILE *infd);
set_term(SCREEN *screen);
delscreen(SCREEN *screen);
endwin(void);
initscr(void);
isendwin(void);
is_term_resized(int lines, int cols);
resize_term(int lines, int cols);
resizeterm(int lines, int cols);
setterm(char *name);
set_tabsize(int value);
DESCRIPTION
These functions initialize terminals and screens.- Disable use of clear, cud, cud1, cup, cuu, cuu1 and vpa.
- Set the value of the home string to the value of the cr string.
- Set lines equal to 1.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected with the exception of initscr() which will log a diagnostic to standard error output and then call exit(3). 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.