summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses-3.4/pdcurses/attr.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/attr.c
parentdd6906328904309e4d93e4bcb04a6cfa3646f29d (diff)
downloadcoreboot-e11835e2995d130890ca9f45cb3e304f2ea3a6a9.tar.xz
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/attr.c')
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/pdcurses/attr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/attr.c b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/attr.c
index 532384b357..123cb90859 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/attr.c
+++ b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/attr.c
@@ -45,24 +45,24 @@ RCSID("$Id: attr.c,v 1.41 2008/07/13 16:08:17 wmcbrine Exp $")
chtype getattrs(WINDOW *win);
Description:
- These functions manipulate the current attributes and/or colors
- of the named window. These attributes can be any combination
+ These functions manipulate the current attributes and/or colors
+ of the named window. These attributes can be any combination
of A_STANDOUT, A_REVERSE, A_BOLD, A_DIM, A_BLINK, A_UNDERLINE.
These constants are defined in <curses.h> and can be combined
with the bitwise-OR operator (|).
- The current attributes of a window are applied to all chtypes
- that are written into the window with waddch(). Attributes are
- a property of the chtype, and move with the character through
+ The current attributes of a window are applied to all chtypes
+ that are written into the window with waddch(). Attributes are
+ a property of the chtype, and move with the character through
any scrolling or insert/delete operations.
- attrset() sets the current attributes of the given window to
- attrs. attroff() turns off the named attributes without
- affecting any other attributes; attron() turns them on.
+ attrset() sets the current attributes of the given window to
+ attrs. attroff() turns off the named attributes without
+ affecting any other attributes; attron() turns them on.
color_set() sets the window color to the value of color_pair.
- standout() is the same as attron(A_STANDOUT). standend() is the
+ standout() is the same as attron(A_STANDOUT). standend() is the
same as attrset(A_NORMAL); that is, it turns off all attributes.
Return Value:
@@ -125,7 +125,7 @@ int wattron(WINDOW *win, chtype attrs)
if (!win)
return ERR;
- if ((win->_attrs & A_COLOR) && (attrs & A_COLOR))
+ if ((win->_attrs & A_COLOR) && (attrs & A_COLOR))
{
oldcolr = win->_attrs & A_COLOR;
oldattr = win->_attrs ^ oldcolr;