summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses-3.4/pdcurses/inopts.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/inopts.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/inopts.c')
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/pdcurses/inopts.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/inopts.c b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/inopts.c
index 6d33fc2a38..b02654f077 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/inopts.c
+++ b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/inopts.c
@@ -33,57 +33,57 @@ RCSID("$Id: inopts.c,v 1.43 2008/07/13 16:08:18 wmcbrine Exp $")
int nocrmode(void);
Description:
- cbreak() and nocbreak() toggle cbreak mode. In cbreak mode,
- characters typed by the user are made available immediately, and
- erase/kill character processing is not performed. In nocbreak
- mode, typed characters are buffered until a newline or carriage
- return. Interrupt and flow control characters are unaffected by
+ cbreak() and nocbreak() toggle cbreak mode. In cbreak mode,
+ characters typed by the user are made available immediately, and
+ erase/kill character processing is not performed. In nocbreak
+ mode, typed characters are buffered until a newline or carriage
+ return. Interrupt and flow control characters are unaffected by
this mode. PDCurses always starts in cbreak mode.
- echo() and noecho() control whether typed characters are echoed
- by the input routine. Initially, input characters are echoed.
+ echo() and noecho() control whether typed characters are echoed
+ by the input routine. Initially, input characters are echoed.
Subsequent calls to echo() and noecho() do not flush type-ahead.
- halfdelay() is similar to cbreak(), but allows for a time limit
- to be specified, in tenths of a second. This causes getch() to
- block for that period before returning ERR if no key has been
+ halfdelay() is similar to cbreak(), but allows for a time limit
+ to be specified, in tenths of a second. This causes getch() to
+ block for that period before returning ERR if no key has been
received. tenths must be between 1 and 255.
- keypad() controls whether getch() returns function/special keys
- as single key codes (e.g., the left arrow key as KEY_LEFT). Per
- X/Open, the default for keypad mode is OFF. You'll probably want
- it on. With keypad mode off, if a special key is pressed,
+ keypad() controls whether getch() returns function/special keys
+ as single key codes (e.g., the left arrow key as KEY_LEFT). Per
+ X/Open, the default for keypad mode is OFF. You'll probably want
+ it on. With keypad mode off, if a special key is pressed,
getch() does nothing or returns ERR.
- nodelay() controls whether wgetch() is a non-blocking call. If
- the option is enabled, and no input is ready, wgetch() will
- return ERR. If disabled, wgetch() will hang until input is
+ nodelay() controls whether wgetch() is a non-blocking call. If
+ the option is enabled, and no input is ready, wgetch() will
+ return ERR. If disabled, wgetch() will hang until input is
ready.
- nl() enables the translation of a carriage return into a newline
- on input. nonl() disables this. Initially, the translation does
+ nl() enables the translation of a carriage return into a newline
+ on input. nonl() disables this. Initially, the translation does
occur.
- raw() and noraw() toggle raw mode. Raw mode is similar to cbreak
- mode, in that characters typed are immediately passed through to
- the user program. The difference is that in raw mode, the INTR,
- QUIT, SUSP, and STOP characters are passed through without being
+ raw() and noraw() toggle raw mode. Raw mode is similar to cbreak
+ mode, in that characters typed are immediately passed through to
+ the user program. The difference is that in raw mode, the INTR,
+ QUIT, SUSP, and STOP characters are passed through without being
interpreted, and without generating a signal.
In PDCurses, the meta() function sets raw mode on or off.
- timeout() and wtimeout() set blocking or non-blocking reads for
- the specified window. The delay is measured in milliseconds. If
- it's negative, a blocking read is used; if zero, then non-
- blocking reads are done -- if no input is waiting, ERR is
- returned immediately. If the delay is positive, the read blocks
+ timeout() and wtimeout() set blocking or non-blocking reads for
+ the specified window. The delay is measured in milliseconds. If
+ it's negative, a blocking read is used; if zero, then non-
+ blocking reads are done -- if no input is waiting, ERR is
+ returned immediately. If the delay is positive, the read blocks
for the delay period; if the period expires, ERR is returned.
intrflush(), notimeout(), noqiflush(), qiflush() and typeahead()
- do nothing in PDCurses, but are included for compatibility with
+ do nothing in PDCurses, but are included for compatibility with
other curses implementations.
- crmode() and nocrmode() are archaic equivalents to cbreak() and
+ crmode() and nocrmode() are archaic equivalents to cbreak() and
nocbreak(), respectively.
Return Value:
@@ -274,7 +274,7 @@ void wtimeout(WINDOW *win, int delay)
if (delay < 0)
{
- /* This causes a blocking read on the window, so turn on delay
+ /* This causes a blocking read on the window, so turn on delay
mode */
win->_nodelay = FALSE;
@@ -282,7 +282,7 @@ void wtimeout(WINDOW *win, int delay)
}
else if (!delay)
{
- /* This causes a non-blocking read on the window, so turn off
+ /* This causes a non-blocking read on the window, so turn off
delay mode */
win->_nodelay = TRUE;
@@ -290,8 +290,8 @@ void wtimeout(WINDOW *win, int delay)
}
else
{
- /* This causes the read on the window to delay for the number of
- milliseconds. Also forces the window into non-blocking read
+ /* This causes the read on the window to delay for the number of
+ milliseconds. Also forces the window into non-blocking read
mode */
/*win->_nodelay = TRUE;*/