flushinp(3cur)flushinp(3cur)Name
flushinp - discard typeahead
Syntax
#include <cursesX.h>
int flushinp()
Description
Any typeahead input that has not been read by the program is discarded.
Return Values
The function returns OK on success and ERR on error.
See Alsotypeahead(3cur)flushinp(3cur)
Check Out this Related Man Page
printw(3cur)printw(3cur)Name
printw, mvprintw, mvwprintw, wprintw - formatted write to a window
Syntax
#include <cursesX.h>
int printw(fmt [, arg] ...)
char *fmt;
int wprintw(win, fmt [, arg] ...)
WINDOW *win;
char *fmt;
int mvprintw(y, x, fmt [, arg] ...)
int y, x;
char *fmt;
int mvwprintw(win, y, x, fmt [, arg] ...)
WINDOW *win;
int y, x;
char *fmt;
Description
The routine adds a string to the default window starting at the current cursor position. This routine causes the string that would nor-
mally be output by to be output by
The routine adds a string to the specified window starting at the current cursor position. This routine causes the string that would nor-
mally be output by to be output by
The routine adds a string to the default window starting at the specified cursor position. This routine causes the string that would nor-
mally be output by to be output by
The routine adds a string to the specified window starting at the specified cursor position. This routine causes the string that would
normally be output by to be output by
All these routines are analogous to It is advisable to use the field width options of to avoid leaving unwanted characters on the screen
from earlier calls.
Return Values
The and functions return OK on success and ERR on error.
See Alsoaddstr(3cur), waddstr(3cur), printf(3s)printw(3cur)