Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
curses_attributes, attron, attroff, attrset, color_set, getattrs, termattrs, wattron, wattroff, wattrset, wcolor_set, attr_on, attr_off, attr_set, attr_get, term_attrs, wattr_on, wattr_off, wattr_set, wattr_get — curses general attribute manipulation routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>attron(int attr);
attroff(int attr);
attrset(int attr);
color_set(short pair, void *opt);
getattrs(WINDOW *win);
termattrs(void);
wcolor_set(WINDOW *win, short pair, void *opt);
wattron(WINDOW * win, int attr);
wattroff(WINDOW * win, int attr);
wattrset(WINDOW * win, int attr);
attr_on(attr_t attr, void *opt);
attr_off(attr_t attr, void *opt);
attr_set(attr_t attr, short pair, void *opt);
attr_get(attr_t *attr, short *pair, void *opt);
term_attrs(void);
wattr_on(WINDOW *win, attr_t attr, void *opt);
wattr_off(WINDOW *win, attr_t attr, void *opt);
wattr_set(WINDOW *win, attr_t attr, short pair, void *opt);
wattr_get(WINDOW *win, attr_t *attr, short *pair, void *opt);
DESCRIPTION
These functions manipulate attributes on stdscr or on the specified window. The attributes that can be manipulated are:- A_NORMAL
- no special attributes are applied
- A_STANDOUT
- characters are displayed in standout mode
- A_UNDERLINE
- characters are displayed underlined
- A_REVERSE
- characters are displayed in inverse video
- A_BLINK
- characters blink
- A_DIM
- characters are displayed at a lower intensity
- A_BOLD
- characters are displayed at a higher intensity
- A_INVIS
- characters are added invisibly
- A_PROTECT
- characters are protected from modification
- A_ALTCHARSET
- characters are displayed using the alternate character set (ACS)
- COLOR_PAIR(n)
- characters are displayed using color pair n.
- WA_STANDOUT
- characters are displayed in standout mode
- WA_UNDERLINE
- characters are displayed underlined
- WA_REVERSE
- characters are displayed in inverse video
- WA_BLINK
- characters blink
- WA_DIM
- characters are displayed at a lower intensity
- WA_BOLD
- characters are displayed at a higher intensity
- WA_INVIS
- characters are added invisibly
- WA_PROTECT
- characters are protected from modification
- WA_ALTCHARSET
- characters are displayed using the alternate character set (ACS)
- WA_LOW
- characters are displayed with low highlight
- WA_TOP
- characters are displayed with top highlight
- WA_HORIZONTAL
- characters are displayed with horizontal highlight
- WA_VERTICAL
- characters are displayed with vertical highlight
- WA_LEFT
- characters are displayed with left highlight
- WA_RIGHT
- characters are displayed with right highlight
- A_ATTRIBUTES
- bit-mask containing attributes part
- A_CHARTEXT
- bit-mask containing character part
- A_COLOR
- bit-mask containing color-pair part