Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
curses_inch, inch, winch, inchnstr, mvinchnstr, winchnstr, mvwinchnstr, inchstr, mvinchstr, winchstr, mvwinchstr, innstr, winnstr, mvinnstr, mvwinnstr, instr, winstr, mvinstr, mvwinstr — curses read screen contents routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>inch(void);
winch(WINDOW *win);
inchnstr(chtype *chars, int n);
mvinchnstr(int y, int x, chtype *chstr, int n);
winchnstr(WINDOW *win, chtype *chars, int n);
mvwinchnstr(WINDOW *win, int y, int x, chtype *chstr, int n);
inchstr(chtype *chars);
mvinchstr(int y, int x, chtype *chstr);
winchstr(WINDOW *win, chtype *chars);
innstr(char *str, int n);
winnstr(WINDOW *win, char *str, int n);
mvinnstr(int y, int x, char *str, int n);
mvwinnstr(WINDOW *win, int y, int x, char *str, int n);
instr(char *str);
winstr(WINDOW *win, char *str);
mvinstr(int y, int x, char *str);
mvwinstr(WINDOW *win, int y, int x, char *str);
DESCRIPTION
These functions read the contents of stdscr or of the specified window.RETURN VALUES
If the calls innstr(), mvinnstr(), mvwinnstr(), and winnstr() succeed then they will return the number of characters actually read. 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.