summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-10-31 12:54:00 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2011-11-01 19:08:23 +0100
commite11835e2995d130890ca9f45cb3e304f2ea3a6a9 (patch)
treecfc5345e9d98b231de0699714771a5d7f54c6ce1 /payloads/libpayload/curses/PDCurses-3.4/pdcurses/refresh.c
parentdd6906328904309e4d93e4bcb04a6cfa3646f29d (diff)
libpayload: remove trailing whitespace and run dos2unix
Change-Id: Iffed3602456f5306711c65f06c873c58d4086e11 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/363 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
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 0b8e1ca5ed..da4bb76edd 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] ||