Refreshes windows and lines.
Curses Library (libcurses.a)
int wnoutrefresh(WINDOW *win);
int wrefresh(WINDOW *win);
The refresh and wrefresh subroutines refresh the current or specified window. The subroutines position the terminal's cursor at the cursor position of the window, except that, if the leaveok mode has been enabled, they may leave the cursor at an arbitrary position.
The wnoutrefresh subroutine determines which parts of the terminal may need updating.
The doupdate subroutine sends to the terminal the commands to perform any required changes.
|*win||Specifies the window to be refreshed.|
Upon successful completion, these subroutines return OK. Otherwise, they return ERR.
For the doupdate or wnoutrefresh subroutine:
To update the user-defined windows my_window1 and my_window2, enter:
WINDOW *my_window1, my_window2; wnoutrefresh(my_window1); wnoutrefresh(my_window2); doupdate();
For the refresh or wrefresh subroutine:
WINDOW *my_window; wrefresh(my_window);
This subroutine is useful if the terminal becomes garbled for any reason.
These subroutines are part of Base Operating System (BOS) Runtime.
The clearok (clearok, idlok, leaveok, scrollok, setscrreg or wsetscrreg Subroutine) subroutine.
Curses Overview for Programming in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
Manipulating Window Data with Curses in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.