Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
slk_attroff, slk_attr_off, slk_attron, slk_attr_on, slk_attrset, slk_attr_set, slk_clear, slk_color, slk_init, slk_label, slk_noutrefresh, slk_refresh, slk_restore, slk_set, slk_touch, slk_wset — Curses soft label key routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>slk_attroff(const chtype attr);
slk_attr_off(const attr_t attr, void *opt);
slk_attron(const chtype attr);
slk_attr_on(const attr_t attr, void *opt);
slk_attrset(const chtype attr);
slk_attr_set(const attr_t attr, short pair, void *opt);
slk_clear(void);
slk_color(short pair);
slk_init(int fmt);
slk_label(int labnum);
slk_noutrefresh(void);
slk_refresh(void);
slk_restore(void);
slk_set(int labnum, const char *label, int justify);
slk_touch(void);
slk_wset(int labnum, const wchar_t *label, int justify);
DESCRIPTION
This Curses interface manipulates the set of soft function-key labels that exist on some terminals. For those terminals that do not have soft labels, Curses takes over the bottom line of stdstr, reducing the size of stdscr and the value of the LINES external variable. There can be up to eight labels of up to eight display columns each.- 0
- indicates a 3-2-3 arrangement.
- 1
- indicates a 4-4 arrangement.
- 0
- Left align.
- 1
- Center align.
- 2
- Right align.
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.