Repaint the specified window on the terminal screen. The refresh function acts on the stdscr window. Format #include <curses.h> int refresh(); int wrefresh (WINDOW *win);
1 – Argument
win A pointer to the window.
2 – Description
The result of this process is that the portion of the window not occluded by subwindows or other windows appears on the terminal screen. To see the entire occluded window on the terminal screen, call the touchwin function instead of the refresh or wrefresh function. See also touchwin.
3 – Return Values
OK Indicates success. ERR Indicates an error.