summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses-3.4/pdcurses/addch.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/pdcurses/addch.c')
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/pdcurses/addch.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/addch.c b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/addch.c
index 586d1a71fa..5934b54b96 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/addch.c
+++ b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/addch.c
@@ -43,41 +43,41 @@ RCSID("$Id: addch.c,v 1.54 2008/07/13 16:08:17 wmcbrine Exp $")
mvaddch() moves the cursor to the specified (y, x) position, and
adds ch to stdscr. mvadd_wch() is the wide version.
- mvwaddch() moves the cursor to the specified position and adds
+ mvwaddch() moves the cursor to the specified position and adds
ch to the specified window. mvwadd_wch() is the wide version.
- echochar() adds ch to stdscr at the current cursor position and
+ echochar() adds ch to stdscr at the current cursor position and
calls refresh(). echo_wchar() is the wide version.
- wechochar() adds ch to the specified window and calls
+ wechochar() adds ch to the specified window and calls
wrefresh(). wecho_wchar() is the wide version.
addrawch(), waddrawch(), mvaddrawch() and mvwaddrawch() are
- PDCurses-specific wrappers for addch() etc. that disable the
+ PDCurses-specific wrappers for addch() etc. that disable the
translation of control characters.
The following applies to all these functions:
- If the cursor moves on to the right margin, an automatic newline
- is performed. If scrollok is enabled, and a character is added
- to the bottom right corner of the window, the scrolling region
- will be scrolled up one line. If scrolling is not allowed, ERR
+ If the cursor moves on to the right margin, an automatic newline
+ is performed. If scrollok is enabled, and a character is added
+ to the bottom right corner of the window, the scrolling region
+ will be scrolled up one line. If scrolling is not allowed, ERR
will be returned.
- If ch is a tab, newline, or backspace, the cursor will be moved
- appropriately within the window. If ch is a newline, the
- clrtoeol routine is called before the cursor is moved to the
- beginning of the next line. If newline mapping is off, the
- cursor will be moved to the next line, but the x coordinate will
- be unchanged. If ch is a tab the cursor is moved to the next
- tab position within the window. If ch is another control
- character, it will be drawn in the ^X notation. Calling the
- inch() routine after adding a control character returns the
- representation of the control character, not the control
+ If ch is a tab, newline, or backspace, the cursor will be moved
+ appropriately within the window. If ch is a newline, the
+ clrtoeol routine is called before the cursor is moved to the
+ beginning of the next line. If newline mapping is off, the
+ cursor will be moved to the next line, but the x coordinate will
+ be unchanged. If ch is a tab the cursor is moved to the next
+ tab position within the window. If ch is another control
+ character, it will be drawn in the ^X notation. Calling the
+ inch() routine after adding a control character returns the
+ representation of the control character, not the control
character.
- Video attributes can be combined with a character by ORing them
- into the parameter. Text, including attributes, can be copied
+ Video attributes can be combined with a character by ORing them
+ into the parameter. Text, including attributes, can be copied
from one place to another by using inch() and addch().
Note that in PDCurses, for now, a cchar_t and a chtype are the
@@ -205,9 +205,9 @@ int waddch(WINDOW *win, const chtype ch)
if (!(attr & A_COLOR))
attr |= win->_attrs;
- /* wrs (4/10/93): Apply the same sort of logic for the window
- background, in that it only takes precedence if other color
- attributes are not there and that the background character
+ /* wrs (4/10/93): Apply the same sort of logic for the window
+ background, in that it only takes precedence if other color
+ attributes are not there and that the background character
will only print if the printing character is blank. */
if (!(attr & A_COLOR))