refresh(3cur)
Name
refresh, wrefresh − refresh window
Syntax
#include <cursesX.h>
int refresh()
int wrefresh(win)
WINDOW ∗win;
Description
The routine wrefresh copies the named window to the physical terminal screen, taking into account what is already there in order to optimize cursor movement.
The routine refresh does the same, using stdscr as a default screen.
These routines must be called to get any output on the terminal, as other routines only manipulate data structures.
Unless leaveok has been enabled, the physical cursor of the terminal is left at the location of the window’s cursor. The routine refresh is a macro.
Return Value
The refresh and wrefresh functions return OK on success and ERR on error.
Errors
No errors are defined for these functions.