summaryrefslogtreecommitdiffstats
path: root/payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c')
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c
index 0b8e1ca..da4bb76 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c
+++ b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c
@@ -17,28 +17,28 @@ RCSID("$Id: refresh.c,v 1.56 2008/07/13 16:08:18 wmcbrine Exp $")
int wredrawln(WINDOW *win, int beg_line, int num_lines);
Description:
- wrefresh() copies the named window to the physical terminal
- screen, taking into account what is already there in order to
- optimize cursor movement. refresh() does the same, using stdscr.
- 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
+ wrefresh() copies the named window to the physical terminal
+ screen, taking into account what is already there in order to
+ optimize cursor movement. refresh() does the same, using stdscr.
+ 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.
- wnoutrefresh() and doupdate() allow multiple updates with more
- efficiency than wrefresh() alone. wrefresh() works by first
- calling wnoutrefresh(), which copies the named window to the
- virtual screen. It then calls doupdate(), which compares the
- virtual screen to the physical screen and does the actual
- update. A series of calls to wrefresh() will result in
- alternating calls to wnoutrefresh() and doupdate(), causing
- several bursts of output to the screen. By first calling
- wnoutrefresh() for each window, it is then possible to call
+ wnoutrefresh() and doupdate() allow multiple updates with more
+ efficiency than wrefresh() alone. wrefresh() works by first
+ calling wnoutrefresh(), which copies the named window to the
+ virtual screen. It then calls doupdate(), which compares the
+ virtual screen to the physical screen and does the actual
+ update. A series of calls to wrefresh() will result in
+ alternating calls to wnoutrefresh() and doupdate(), causing
+ several bursts of output to the screen. By first calling
+ wnoutrefresh() for each window, it is then possible to call
doupdate() only once.
- In PDCurses, redrawwin() is equivalent to touchwin(), and
- wredrawln() is the same as touchline(). In some other curses
- implementations, there's a subtle distinction, but it has no
+ In PDCurses, redrawwin() is equivalent to touchwin(), and
+ wredrawln() is the same as touchline(). In some other curses
+ implementations, there's a subtle distinction, but it has no
meaning in PDCurses.
Return Value:
@@ -79,7 +79,7 @@ int wnoutrefresh(WINDOW *win)
int first = win->_firstch[i]; /* first changed */
int last = win->_lastch[i]; /* last changed */
- /* ignore areas on the outside that are marked as changed,
+ /* ignore areas on the outside that are marked as changed,
but really aren't */
while (first <= last && src[first] == dest[first])
@@ -95,7 +95,7 @@ int wnoutrefresh(WINDOW *win)
memcpy(dest + first, src + first,
(last - first + 1) * sizeof(chtype));
- first += begx;
+ first += begx;
last += begx;
if (first < curscr->_firstch[j] ||
OpenPOWER on IntegriCloud