Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
curses_addch, addch, waddch, mvaddch, mvwaddch — curses add characters to windows routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>addch(chtype ch);
waddch(WINDOW *win, chtype ch);
mvaddch(int y, int x, chtype ch);
mvwaddch(WINDOW *win, int y, int x, chtype ch);
DESCRIPTION
These functions add characters to stdscr or to the specified 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.Name | Default | Description |
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_DIAMOND | + | Diamond |
ACS_CKBOARD | : | Checker board (stipple) |
ACS_DEGREE | ' | Degree symbol |
ACS_PLMINUS | # | Plus/minus |
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_PLUS | + | Plus |
ACS_HLINE | - | Horizontal line |
ACS_S1 | - | Scan line 1 |
ACS_S9 | - | Scan line 9 |
ACS_LTEE | + | Left tee |
ACS_RTEE | + | Right tee |
ACS_BTEE | + | Bottom tee |
ACS_TTEE | + | Top tee |
ACS_VLINE | | | Vertical line |
ACS_BULLET | o | Bullet |
Name | Default | Description |
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 | * | Pi symbol |
ACS_NEQUAL | ! | Not equal to |
ACS_STERLING | f | Sterling symbol |
System V Name | NetBSD Curses Name |
ACS_SBBS | ACS_LRCORNER |
ACS_BBSS | ACS_URCORNER |
ACS_BSSB | ACS_ULCORNER |
ACS_SSBB | ACS_LLCORNER |
ACS_SSSS | ACS_PLUS |
ACS_BSBS | ACS_HLINE |
ACS_SSSB | ACS_LTEE |
ACS_SBSS | ACS_RTEE |
ACS_SSBS | ACS_BTEE |
ACS_BSSS | ACS_TTEE |
ACS_SBSB | ACS_VLINE |
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values:- OK
- The function completed successfully.
- ERR
- An error occurred in the function.