int addch(chtype ch);
int waddch(WINDOW *win, chtype ch);
int mvaddch(int y, int x, chtype ch);
int mvwaddch(WINDOW *win, int y, int x, chtype ch);
int echochar(chtype ch);
int wechochar(WINDOW *win, chtype ch);
If ch is a tab, newline, or backspace, the cursor is moved
appropriately within the window. Backspace moves the cursor one character
left; at the left edge of a window it
does nothing. Newline does a
If ch is any control character other than tab, newline, or
backspace, it is drawn in ^X notation.
Video attributes can be combined with a character argument
The following variables may be used to add line drawing characters to the
screen with routines of the
Name Default Description -------------------------------------------------- ACS_ULCORNER + upper left-hand corner ACS_LLCORNER + lower left-hand corner ACS_URCORNER + upper right-hand corner ACS_LRCORNER + lower right-hand corner ACS_RTEE + right tee ACS_LTEE + left tee ACS_BTEE + bottom tee ACS_TTEE + top tee ACS_HLINE - horizontal line ACS_VLINE | vertical line ACS_PLUS + plus ACS_S1 - scan line 1 ACS_S9 _ scan line 9 ACS_DIAMOND + diamond ACS_CKBOARD : checker board (stipple) ACS_DEGREE ' degree symbol ACS_PLMINUS # plus/minus ACS_BULLET o bullet ACS_LARROW < arrow pointing left ACS_RARROW > arrow pointing right ACS_DARROW v arrow pointing down ACS_UARROW ^ arrow pointing up ACS_BOARD # board of squares ACS_LANTERN # lantern symbol ACS_BLOCK # solid square block ACS_S3 - scan line 3 ACS_S7 - scan line 7 ACS_LEQUAL < less-than-or-equal-to ACS_GEQUAL > greater-than-or-equal-to ACS_PI * greek pi ACS_NEQUAL ! not-equal ACS_STERLING f pound-sterling symbol
All routines return the integer ERR upon failure and OK on success (the SVr4 manuals specify only "an integer value other than ERR") upon successful completion, unless otherwise noted in the preceding routine descriptions.
The following extended curses features are available only on PC-clone consoles and compatible terminals obeying the ANSI.SYS de-facto standard for terminal control sequences. They are not part of XSI curses.
The attribute A_ALTCHARSET actually forces literal display of PC ROM characters including the high-half graphics. Your console driver may still capture or translate a few (such as ESC) but this feature should give you access to the card-suit characters, up and down-arrow, and most others in the range 0-32. (In a terminfo entry designed for use with ncurses, the high-half characters are obtained using this attribute with an acsc string in which the second of each pair is a high-half character.)
All these functions are described in the XSI Curses standard, Issue 4. The defaults specified for forms-drawing characters apply in the POSIX locale.
The seven ACS symbols starting with ACS_S3 were not documented
in any publicly released System V. However, many publicly available terminfos
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.1 Documentation Build 15.