14.5. Interfaces for libncurses

Table 14-3 defines the library name and shared object name for the libncurses library

Table 14-3. libncurses Definition

Library:libncurses
SONAME:libncurses.so.5

The parameters or return types of the following interfaces have had the const qualifier added as shown here, as compared to the specification in X/Open Curses.

extern const char *keyname (int);
extern SCREEN *newterm (const char *, FILE *, FILE *);
extern const char *unctrl (chtype);

extern int mvprintw (int, int, const char *, ...);
extern int mvwprintw (WINDOW *, int, int, const char *, ...);
extern int printw (const char *, ...);
extern int vwprintw (WINDOW *, const char *, va_list);
extern int vw_printw (WINDOW *, const char *, va_list);
extern int wprintw (WINDOW *, const char *, ...);

extern int mvscanw (int, int, const char *, ...);
extern int mvwscanw (WINDOW *, int, int, const char *, ...);
extern int scanw (const char *, ...);
extern int vwscanw (WINDOW *, const char *, va_list);
extern int vw_scanw (WINDOW *, const char *, va_list);
extern int wscanw (WINDOW *, const char *, ...);

The behavior of the interfaces in this library is specified by the following specifications:

[LSB] This Specification
[SUS-CURSES] X/Open Curses

14.5.1. Curses

14.5.1.1. Interfaces for Curses

An LSB conforming implementation shall provide the generic functions for Curses specified in Table 14-4, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-4. libncurses - Curses Function Interfaces

addch [SUS-CURSES]addchnstr [SUS-CURSES]addchstr [SUS-CURSES]addnstr [SUS-CURSES]
addstr [SUS-CURSES]attr_get [SUS-CURSES]attr_off [SUS-CURSES]attr_on [SUS-CURSES]
attr_set [SUS-CURSES]attroff [SUS-CURSES]attron [SUS-CURSES]attrset [SUS-CURSES]
baudrate [SUS-CURSES]beep [SUS-CURSES]bkgd [SUS-CURSES]bkgdset [SUS-CURSES]
border [SUS-CURSES]box [SUS-CURSES]can_change_color [SUS-CURSES]cbreak [SUS-CURSES]
chgat [SUS-CURSES]clear [SUS-CURSES]clearok [SUS-CURSES]clrtobot [SUS-CURSES]
clrtoeol [SUS-CURSES]color_content [SUS-CURSES]color_set [SUS-CURSES]copywin [SUS-CURSES]
curs_set [SUS-CURSES]def_prog_mode [SUS-CURSES]def_shell_mode [SUS-CURSES]del_curterm [SUS-CURSES]
delay_output [SUS-CURSES]delch [SUS-CURSES]deleteln [SUS-CURSES]delscreen [SUS-CURSES]
delwin [SUS-CURSES]derwin [SUS-CURSES]doupdate [SUS-CURSES]dupwin [SUS-CURSES]
echo [SUS-CURSES]echochar [SUS-CURSES]endwin [SUS-CURSES]erase [SUS-CURSES]
erasechar [SUS-CURSES]filter [SUS-CURSES]flash [SUS-CURSES]flushinp [SUS-CURSES]
getbkgd [SUS-CURSES]getch [SUS-CURSES]getnstr [SUS-CURSES]getstr [SUS-CURSES]
getwin [SUS-CURSES]halfdelay [SUS-CURSES]has_colors [SUS-CURSES]has_ic [SUS-CURSES]
has_il [SUS-CURSES]hline [SUS-CURSES]idcok [SUS-CURSES]idlok [SUS-CURSES]
immedok [SUS-CURSES]inch [SUS-CURSES]inchnstr [LSB]inchstr [LSB]
init_color [SUS-CURSES]init_pair [SUS-CURSES]initscr [SUS-CURSES]innstr [SUS-CURSES]
insch [SUS-CURSES]insdelln [SUS-CURSES]insertln [SUS-CURSES]insnstr [SUS-CURSES]
insstr [SUS-CURSES]instr [LSB]intrflush [SUS-CURSES]is_linetouched [SUS-CURSES]
is_wintouched [SUS-CURSES]isendwin [SUS-CURSES]keyname [SUS-CURSES]keypad [SUS-CURSES]
killchar [SUS-CURSES]leaveok [SUS-CURSES]longname [SUS-CURSES]meta [SUS-CURSES]
move [SUS-CURSES]mvaddch [SUS-CURSES]mvaddchnstr [SUS-CURSES]mvaddchstr [SUS-CURSES]
mvaddnstr [SUS-CURSES]mvaddstr [SUS-CURSES]mvchgat [SUS-CURSES]mvcur [LSB]
mvdelch [SUS-CURSES]mvderwin [SUS-CURSES]mvgetch [SUS-CURSES]mvgetnstr [SUS-CURSES]
mvgetstr [SUS-CURSES]mvhline [SUS-CURSES]mvinch [SUS-CURSES]mvinchnstr [LSB]
mvinchstr [LSB]mvinnstr [SUS-CURSES]mvinsch [SUS-CURSES]mvinsnstr [SUS-CURSES]
mvinsstr [SUS-CURSES]mvinstr [LSB]mvprintw [SUS-CURSES]mvscanw [LSB]
mvvline [SUS-CURSES]mvwaddch [SUS-CURSES]mvwaddchnstr [SUS-CURSES]mvwaddchstr [SUS-CURSES]
mvwaddnstr [SUS-CURSES]mvwaddstr [SUS-CURSES]mvwchgat [SUS-CURSES]mvwdelch [SUS-CURSES]
mvwgetch [SUS-CURSES]mvwgetnstr [SUS-CURSES]mvwgetstr [SUS-CURSES]mvwhline [SUS-CURSES]
mvwin [SUS-CURSES]mvwinch [SUS-CURSES]mvwinchnstr [LSB]mvwinchstr [LSB]
mvwinnstr [SUS-CURSES]mvwinsch [SUS-CURSES]mvwinsnstr [SUS-CURSES]mvwinsstr [SUS-CURSES]
mvwinstr [LSB]mvwprintw [SUS-CURSES]mvwscanw [LSB]mvwvline [SUS-CURSES]
napms [SUS-CURSES]newpad [SUS-CURSES]newterm [SUS-CURSES]newwin [SUS-CURSES]
nl [SUS-CURSES]nocbreak [SUS-CURSES]nodelay [SUS-CURSES]noecho [SUS-CURSES]
nonl [SUS-CURSES]noqiflush [SUS-CURSES]noraw [SUS-CURSES]notimeout [SUS-CURSES]
overlay [SUS-CURSES]overwrite [SUS-CURSES]pair_content [SUS-CURSES]pechochar [SUS-CURSES]
pnoutrefresh [SUS-CURSES]prefresh [SUS-CURSES]printw [SUS-CURSES]putp [SUS-CURSES]
putwin [SUS-CURSES]qiflush [SUS-CURSES]raw [SUS-CURSES]redrawwin [SUS-CURSES]
refresh [SUS-CURSES]reset_prog_mode [SUS-CURSES]reset_shell_mode [SUS-CURSES]resetty [SUS-CURSES]
restartterm [SUS-CURSES]ripoffline [LSB]savetty [SUS-CURSES]scanw [LSB]
scr_dump [SUS-CURSES]scr_init [SUS-CURSES]scr_restore [SUS-CURSES]scr_set [SUS-CURSES]
scrl [SUS-CURSES]scroll [SUS-CURSES]scrollok [SUS-CURSES]set_curterm [SUS-CURSES]
set_term [SUS-CURSES]setscrreg [SUS-CURSES]setupterm [SUS-CURSES]slk_attr_set [SUS-CURSES]
slk_attroff [SUS-CURSES]slk_attron [SUS-CURSES]slk_attrset [SUS-CURSES]slk_clear [SUS-CURSES]
slk_color [SUS-CURSES]slk_init [SUS-CURSES]slk_label [SUS-CURSES]slk_noutrefresh [SUS-CURSES]
slk_refresh [SUS-CURSES]slk_restore [SUS-CURSES]slk_set [SUS-CURSES]slk_touch [SUS-CURSES]
standend [SUS-CURSES]standout [SUS-CURSES]start_color [SUS-CURSES]subpad [SUS-CURSES]
subwin [SUS-CURSES]syncok [SUS-CURSES]termattrs [SUS-CURSES]termname [SUS-CURSES]
tgetent [SUS-CURSES]tgetflag [SUS-CURSES]tgetnum [SUS-CURSES]tgetstr [SUS-CURSES]
tgoto [SUS-CURSES]tigetflag [SUS-CURSES]tigetnum [SUS-CURSES]tigetstr [SUS-CURSES]
timeout [SUS-CURSES]touchline [SUS-CURSES]touchwin [SUS-CURSES]tparm [SUS-CURSES]
tputs [SUS-CURSES]typeahead [SUS-CURSES]unctrl [SUS-CURSES]ungetch [SUS-CURSES]
untouchwin [SUS-CURSES]use_env [SUS-CURSES]vidattr [SUS-CURSES]vidputs [SUS-CURSES]
vline [SUS-CURSES]vw_printw [SUS-CURSES]vw_scanw [LSB]vwprintw [SUS-CURSES]
vwscanw [LSB]waddch [SUS-CURSES]waddchnstr [SUS-CURSES]waddchstr [SUS-CURSES]
waddnstr [SUS-CURSES]waddstr [SUS-CURSES]wattr_get [SUS-CURSES]wattr_off [SUS-CURSES]
wattr_on [SUS-CURSES]wattr_set [SUS-CURSES]wattroff [SUS-CURSES]wattron [SUS-CURSES]
wattrset [SUS-CURSES]wbkgd [SUS-CURSES]wbkgdset [SUS-CURSES]wborder [SUS-CURSES]
wchgat [SUS-CURSES]wclear [SUS-CURSES]wclrtobot [SUS-CURSES]wclrtoeol [SUS-CURSES]
wcolor_set [SUS-CURSES]wcursyncup [SUS-CURSES]wdelch [SUS-CURSES]wdeleteln [SUS-CURSES]
wechochar [SUS-CURSES]werase [SUS-CURSES]wgetch [SUS-CURSES]wgetnstr [SUS-CURSES]
wgetstr [SUS-CURSES]whline [SUS-CURSES]winch [SUS-CURSES]winchnstr [LSB]
winchstr [LSB]winnstr [SUS-CURSES]winsch [SUS-CURSES]winsdelln [SUS-CURSES]
winsertln [SUS-CURSES]winsnstr [SUS-CURSES]winsstr [SUS-CURSES]winstr [LSB]
wmove [SUS-CURSES]wnoutrefresh [SUS-CURSES]wprintw [SUS-CURSES]wredrawln [SUS-CURSES]
wrefresh [SUS-CURSES]wscanw [LSB]wscrl [SUS-CURSES]wsetscrreg [SUS-CURSES]
wstandend [SUS-CURSES]wstandout [SUS-CURSES]wsyncdown [SUS-CURSES]wsyncup [SUS-CURSES]
wtimeout [SUS-CURSES]wtouchln [SUS-CURSES]wvline [SUS-CURSES] 

An LSB conforming implementation shall provide the generic deprecated functions for Curses specified in Table 14-5, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-5. libncurses - Curses Deprecated Function Interfaces

tgetent [SUS-CURSES]tgetflag [SUS-CURSES]tgetnum [SUS-CURSES]tgetstr [SUS-CURSES]
tgoto [SUS-CURSES]   

An LSB conforming implementation shall provide the generic data interfaces for Curses specified in Table 14-6, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-6. libncurses - Curses Data Interfaces

COLORS [SUS-CURSES]COLOR_PAIRS [SUS-CURSES]COLS [SUS-CURSES]LINES [SUS-CURSES]
acs_map [SUS-CURSES]cur_term [SUS-CURSES]curscr [SUS-CURSES]stdscr [SUS-CURSES]