These functions add characters to
stdscr or to the specified window.
The
addch() function adds the character given in
ch to
stdscr at the current cursor position and advances the current cursor position by one. Any character attributes set in
ch will be merged with the background attributes currently set on
stdscr.
The
waddch() function is the same as the
addch() function, excepting that the character is added to the window specified by
win.
The
mvaddch() and
mvwaddch() functions are the same as the
addch() and
waddch() functions, respectively, excepting that
wmove() is called to move the cursor to the position specified by
y,
x before the character is added to the window.
LINE DRAWING CHARACTERS
Some terminals support the display of line drawing and graphics characters. These characters can be added using their defined names, as shown in the table below. Where the terminal does not support a specific character, the default (non-graphics) character is displayed instead.
ACS_RARROW
>
Arrow pointing right
ACS_LARROW
<
Arrow pointing left
ACS_UARROW
^
Arrow pointing up
ACS_DARROW
v
Arrow pointing down
ACS_BLOCK
#
Solid square block
ACS_CKBOARD
:
Checker board (stipple)
ACS_DEGREE
'
Degree symbol
ACS_BOARD
#
Board of squares
ACS_LANTERN
#
Lantern symbol
ACS_LRCORNER
+
Lower right-hand corner
ACS_URCORNER
+
Upper right-hand corner
ACS_ULCORNER
+
Upper left-hand corner
ACS_LLCORNER
+
Lower left-hand corner
ACS_HLINE
-
Horizontal line
ACS_VLINE
|
Vertical line
The following additional,
ncurses compatible, characters are also supported.
ACS_LEQUAL
<
Less than or equal to
ACS_GEQUAL
>
Greater than or equal to
ACS_NEQUAL
!
Not equal to
ACS_STERLING
f
Sterling symbol
For compatibility with some
System V implementations, the following definitions are also supported.
System V Name
NetBSD Curses Name