These functions update the terminal with the contents of
stdscr or of the specified window(s).
The
refresh() function causes curses to propagate changes made to
stdscr to the terminal display. Any changes made to subwindows of
stdscr are also propagated.
The
wrefresh() function is the same as the
refresh() function, excepting that changes are propagated to the terminal from the window specified by
win.
The
wnoutrefresh() function performs the internal processing required by curses to determine what changes need to be made to synchronise the internal screen buffer and the terminal but does not modify the terminal display.
The
doupdate() function updates the terminal display to match the internal curses representation of the display.
The
wnoutrefresh() and
doupdate() functions can be used together to speed up terminal redraws by deferring the actual terminal updates until after a batch of updates to multiple windows has been done.
The
refresh() function is equivalent to
wnoutrefresh(
stdscr) followed by
doupdate().
The
leaveok() function determines whether refresh operations may leave the screen cursor in an arbitrary position on the screen. Setting
flag to
FALSE ensures that the screen cursor is positioned at the current cursor position after a refresh operation has taken place.
The
flushok() function is used to determine whether or not the screen's output file descriptor will be flushed on refresh. Setting
flag to
TRUE will cause the output to be flushed.