JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 3: Curses Library Functions     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Curses Library Functions

addch(3CURSES)

addch(3XCURSES)

addchnstr(3CURSES)

addchnstr(3XCURSES)

addchstr(3CURSES)

addchstr(3XCURSES)

addnstr(3CURSES)

addnstr(3XCURSES)

addnwstr(3CURSES)

addnwstr(3XCURSES)

addstr(3CURSES)

addstr(3XCURSES)

addwch(3CURSES)

add_wch(3XCURSES)

addwchnstr(3CURSES)

add_wchnstr(3XCURSES)

addwchstr(3CURSES)

add_wchstr(3XCURSES)

addwstr(3CURSES)

addwstr(3XCURSES)

adjcurspos(3CURSES)

arc(3PLOT)

attr_get(3XCURSES)

attroff(3CURSES)

attr_off(3XCURSES)

attroff(3XCURSES)

attron(3CURSES)

attr_on(3XCURSES)

attron(3XCURSES)

attrset(3CURSES)

attr_set(3XCURSES)

attrset(3XCURSES)

baudrate(3CURSES)

baudrate(3XCURSES)

beep(3CURSES)

beep(3XCURSES)

bkgd(3CURSES)

bkgd(3XCURSES)

bkgdset(3CURSES)

bkgdset(3XCURSES)

bkgrnd(3XCURSES)

bkgrndset(3XCURSES)

border(3CURSES)

border(3XCURSES)

border_set(3XCURSES)

bottom_panel(3CURSES)

box(3CURSES)

box(3PLOT)

box(3XCURSES)

box_set(3XCURSES)

can_change_color(3CURSES)

can_change_color(3XCURSES)

cbreak(3CURSES)

cbreak(3XCURSES)

chgat(3XCURSES)

circle(3PLOT)

clear(3CURSES)

clear(3XCURSES)

clearok(3CURSES)

clearok(3XCURSES)

closepl(3PLOT)

closevt(3PLOT)

clrtobot(3CURSES)

clrtobot(3XCURSES)

clrtoeol(3CURSES)

clrtoeol(3XCURSES)

color_content(3CURSES)

color_content(3XCURSES)

COLOR_PAIR(3XCURSES)

COLOR_PAIRS(3XCURSES)

COLORS(3XCURSES)

color_set(3XCURSES)

COLS(3XCURSES)

cont(3PLOT)

copywin(3CURSES)

copywin(3XCURSES)

current_field(3CURSES)

current_item(3CURSES)

curs_addch(3CURSES)

curs_addchstr(3CURSES)

curs_addstr(3CURSES)

curs_addwch(3CURSES)

curs_addwchstr(3CURSES)

curs_addwstr(3CURSES)

curs_alecompat(3CURSES)

curs_attr(3CURSES)

curs_beep(3CURSES)

curs_bkgd(3CURSES)

curs_border(3CURSES)

curs_clear(3CURSES)

curs_color(3CURSES)

curscr(3XCURSES)

curs_delch(3CURSES)

curs_deleteln(3CURSES)

curses(3CURSES)

curses(3XCURSES)

curs_getch(3CURSES)

curs_getstr(3CURSES)

curs_getwch(3CURSES)

curs_getwstr(3CURSES)

curs_getyx(3CURSES)

curs_inch(3CURSES)

curs_inchstr(3CURSES)

curs_initscr(3CURSES)

curs_inopts(3CURSES)

curs_insch(3CURSES)

curs_insstr(3CURSES)

curs_instr(3CURSES)

curs_inswch(3CURSES)

curs_inswstr(3CURSES)

curs_inwch(3CURSES)

curs_inwchstr(3CURSES)

curs_inwstr(3CURSES)

curs_kernel(3CURSES)

curs_move(3CURSES)

curs_outopts(3CURSES)

curs_overlay(3CURSES)

curs_pad(3CURSES)

curs_printw(3CURSES)

curs_refresh(3CURSES)

curs_scanw(3CURSES)

curs_scr_dump(3CURSES)

curs_scroll(3CURSES)

curs_set(3CURSES)

curs_set(3XCURSES)

curs_slk(3CURSES)

curs_termattrs(3CURSES)

curs_termcap(3CURSES)

curs_terminfo(3CURSES)

curs_touch(3CURSES)

curs_util(3CURSES)

curs_window(3CURSES)

cur_term(3XCURSES)

data_ahead(3CURSES)

data_behind(3CURSES)

def_prog_mode(3CURSES)

def_prog_mode(3XCURSES)

def_shell_mode(3CURSES)

def_shell_mode(3XCURSES)

delay_output(3CURSES)

delay_output(3XCURSES)

delch(3CURSES)

delch(3XCURSES)

del_curterm(3CURSES)

del_curterm(3XCURSES)

deleteln(3CURSES)

deleteln(3XCURSES)

del_panel(3CURSES)

delscreen(3CURSES)

delscreen(3XCURSES)

delwin(3CURSES)

delwin(3XCURSES)

derwin(3CURSES)

derwin(3XCURSES)

doupdate(3CURSES)

doupdate(3XCURSES)

dup_field(3CURSES)

dupwin(3CURSES)

dupwin(3XCURSES)

dynamic_field_info(3CURSES)

echo(3CURSES)

echo(3XCURSES)

echochar(3CURSES)

echochar(3XCURSES)

echowchar(3CURSES)

echo_wchar(3XCURSES)

endwin(3CURSES)

endwin(3XCURSES)

erase(3CURSES)

erase(3PLOT)

erase(3XCURSES)

erasechar(3CURSES)

erasechar(3XCURSES)

erasewchar(3XCURSES)

field_arg(3CURSES)

field_back(3CURSES)

field_buffer(3CURSES)

field_count(3CURSES)

field_fore(3CURSES)

field_index(3CURSES)

field_info(3CURSES)

field_init(3CURSES)

field_just(3CURSES)

field_opts(3CURSES)

field_opts_off(3CURSES)

field_opts_on(3CURSES)

field_pad(3CURSES)

field_status(3CURSES)

field_term(3CURSES)

field_type(3CURSES)

field_userptr(3CURSES)

filter(3CURSES)

filter(3XCURSES)

flash(3CURSES)

flash(3XCURSES)

flushinp(3CURSES)

flushinp(3XCURSES)

form_cursor(3CURSES)

form_data(3CURSES)

form_driver(3CURSES)

form_field(3CURSES)

form_field_attributes(3CURSES)

form_field_buffer(3CURSES)

form_field_info(3CURSES)

form_field_just(3CURSES)

form_field_new(3CURSES)

form_field_opts(3CURSES)

form_fields(3CURSES)

form_fieldtype(3CURSES)

form_field_userptr(3CURSES)

form_field_validation(3CURSES)

form_hook(3CURSES)

form_init(3CURSES)

form_new(3CURSES)

form_new_page(3CURSES)

form_opts(3CURSES)

form_opts_off(3CURSES)

form_opts_on(3CURSES)

form_page(3CURSES)

form_post(3CURSES)

forms(3CURSES)

form_sub(3CURSES)

form_term(3CURSES)

form_userptr(3CURSES)

form_win(3CURSES)

free_field(3CURSES)

free_fieldtype(3CURSES)

free_form(3CURSES)

free_item(3CURSES)

free_menu(3CURSES)

getbegyx(3CURSES)

getbegyx(3XCURSES)

getbkgd(3XCURSES)

getbkgrnd(3XCURSES)

getcchar(3XCURSES)

getch(3CURSES)

getch(3XCURSES)

getmaxyx(3CURSES)

getmaxyx(3XCURSES)

getnstr(3XCURSES)

getnwstr(3CURSES)

getn_wstr(3XCURSES)

getparyx(3CURSES)

getparyx(3XCURSES)

getstr(3CURSES)

getstr(3XCURSES)

getsyx(3CURSES)

getwch(3CURSES)

get_wch(3XCURSES)

getwin(3CURSES)

getwin(3XCURSES)

getwstr(3CURSES)

get_wstr(3XCURSES)

getyx(3CURSES)

getyx(3XCURSES)

halfdelay(3CURSES)

halfdelay(3XCURSES)

has_colors(3CURSES)

has_colors(3XCURSES)

has_ic(3CURSES)

has_ic(3XCURSES)

has_il(3CURSES)

has_il(3XCURSES)

hide_panel(3CURSES)

hline(3XCURSES)

hline_set(3XCURSES)

idcok(3CURSES)

idcok(3XCURSES)

idlok(3CURSES)

idlok(3XCURSES)

immedok(3CURSES)

immedok(3XCURSES)

inch(3CURSES)

inch(3XCURSES)

inchnstr(3CURSES)

inchnstr(3XCURSES)

inchstr(3CURSES)

inchstr(3XCURSES)

init_color(3CURSES)

init_color(3XCURSES)

init_pair(3CURSES)

init_pair(3XCURSES)

initscr(3CURSES)

initscr(3XCURSES)

innstr(3CURSES)

innstr(3XCURSES)

innwstr(3CURSES)

innwstr(3XCURSES)

insch(3CURSES)

insch(3XCURSES)

insdelln(3CURSES)

insdelln(3XCURSES)

insertln(3CURSES)

insertln(3XCURSES)

insnstr(3CURSES)

insnstr(3XCURSES)

insnwstr(3CURSES)

ins_nwstr(3XCURSES)

insstr(3CURSES)

insstr(3XCURSES)

instr(3CURSES)

instr(3XCURSES)

inswch(3CURSES)

ins_wch(3XCURSES)

inswstr(3CURSES)

ins_wstr(3XCURSES)

intrflush(3CURSES)

intrflush(3XCURSES)

inwch(3CURSES)

in_wch(3XCURSES)

inwchnstr(3CURSES)

in_wchnstr(3XCURSES)

inwchstr(3CURSES)

in_wchstr(3XCURSES)

inwstr(3CURSES)

inwstr(3XCURSES)

isendwin(3CURSES)

isendwin(3XCURSES)

is_linetouched(3CURSES)

is_linetouched(3XCURSES)

is_wintouched(3CURSES)

is_wintouched(3XCURSES)

item_count(3CURSES)

item_description(3CURSES)

item_index(3CURSES)

item_init(3CURSES)

item_name(3CURSES)

item_opts(3CURSES)

item_opts_off(3CURSES)

item_opts_on(3CURSES)

item_term(3CURSES)

item_userptr(3CURSES)

item_value(3CURSES)

item_visible(3CURSES)

keyname(3CURSES)

key_name(3XCURSES)

keyname(3XCURSES)

keypad(3CURSES)

keypad(3XCURSES)

killchar(3CURSES)

killchar(3XCURSES)

killwchar(3XCURSES)

label(3PLOT)

leaveok(3CURSES)

leaveok(3XCURSES)

libcurses(3XCURSES)

line(3PLOT)

linemod(3PLOT)

LINES(3XCURSES)

link_field(3CURSES)

link_fieldtype(3CURSES)

longname(3CURSES)

longname(3XCURSES)

menu_attributes(3CURSES)

menu_back(3CURSES)

menu_cursor(3CURSES)

menu_driver(3CURSES)

menu_fore(3CURSES)

menu_format(3CURSES)

menu_grey(3CURSES)

menu_hook(3CURSES)

menu_init(3CURSES)

menu_item_current(3CURSES)

menu_item_name(3CURSES)

menu_item_new(3CURSES)

menu_item_opts(3CURSES)

menu_items(3CURSES)

menu_item_userptr(3CURSES)

menu_item_value(3CURSES)

menu_item_visible(3CURSES)

menu_mark(3CURSES)

menu_new(3CURSES)

menu_opts(3CURSES)

menu_opts_off(3CURSES)

menu_opts_on(3CURSES)

menu_pad(3CURSES)

menu_pattern(3CURSES)

menu_post(3CURSES)

menus(3CURSES)

menu_sub(3CURSES)

menu_term(3CURSES)

menu_userptr(3CURSES)

menu_win(3CURSES)

meta(3CURSES)

meta(3XCURSES)

move(3CURSES)

move(3PLOT)

move(3XCURSES)

move_field(3CURSES)

movenextch(3CURSES)

move_panel(3CURSES)

moveprevch(3CURSES)

mvaddch(3CURSES)

mvaddch(3XCURSES)

mvaddchnstr(3CURSES)

mvaddchnstr(3XCURSES)

mvaddchstr(3CURSES)

mvaddchstr(3XCURSES)

mvaddnstr(3CURSES)

mvaddnstr(3XCURSES)

mvaddnwstr(3CURSES)

mvaddnwstr(3XCURSES)

mvaddstr(3CURSES)

mvaddstr(3XCURSES)

mvaddwch(3CURSES)

mvadd_wch(3XCURSES)

mvaddwchnstr(3CURSES)

mvadd_wchnstr(3XCURSES)

mvaddwchstr(3CURSES)

mvadd_wchstr(3XCURSES)

mvaddwstr(3CURSES)

mvaddwstr(3XCURSES)

mvchgat(3XCURSES)

mvcur(3CURSES)

mvcur(3XCURSES)

mvdelch(3CURSES)

mvdelch(3XCURSES)

mvderwin(3CURSES)

mvderwin(3XCURSES)

mvgetch(3CURSES)

mvgetch(3XCURSES)

mvgetnstr(3XCURSES)

mvgetnwstr(3CURSES)

mvgetn_wstr(3XCURSES)

mvgetstr(3CURSES)

mvgetstr(3XCURSES)

mvgetwch(3CURSES)

mvget_wch(3XCURSES)

mvgetwstr(3CURSES)

mvget_wstr(3XCURSES)

mvhline(3XCURSES)

mvhline_set(3XCURSES)

mvinch(3CURSES)

mvinch(3XCURSES)

mvinchnstr(3CURSES)

mvinchnstr(3XCURSES)

mvinchstr(3CURSES)

mvinchstr(3XCURSES)

mvinnstr(3CURSES)

mvinnstr(3XCURSES)

mvinnwstr(3CURSES)

mvinnwstr(3XCURSES)

mvinsch(3CURSES)

mvinsch(3XCURSES)

mvinsnstr(3CURSES)

mvinsnstr(3XCURSES)

mvinsnwstr(3CURSES)

mvins_nwstr(3XCURSES)

mvinsstr(3CURSES)

mvinsstr(3XCURSES)

mvinstr(3CURSES)

mvinstr(3XCURSES)

mvinswch(3CURSES)

mvins_wch(3XCURSES)

mvinswstr(3CURSES)

mvins_wstr(3XCURSES)

mvinwch(3CURSES)

mvin_wch(3XCURSES)

mvinwchnstr(3CURSES)

mvin_wchnstr(3XCURSES)

mvinwchstr(3CURSES)

mvin_wchstr(3XCURSES)

mvinwstr(3CURSES)

mvinwstr(3XCURSES)

mvprintw(3CURSES)

mvprintw(3XCURSES)

mvscanw(3CURSES)

mvscanw(3XCURSES)

mvvline(3XCURSES)

mvvline_set(3XCURSES)

mvwaddch(3CURSES)

mvwaddch(3XCURSES)

mvwaddchnstr(3CURSES)

mvwaddchnstr(3XCURSES)

mvwaddchstr(3CURSES)

mvwaddchstr(3XCURSES)

mvwaddnstr(3CURSES)

mvwaddnstr(3XCURSES)

mvwaddnwstr(3CURSES)

mvwaddnwstr(3XCURSES)

mvwaddstr(3CURSES)

mvwaddstr(3XCURSES)

mvwaddwch(3CURSES)

mvwadd_wch(3XCURSES)

mvwaddwchnstr(3CURSES)

mvwadd_wchnstr(3XCURSES)

mvwaddwchstr(3CURSES)

mvwadd_wchstr(3XCURSES)

mvwaddwstr(3CURSES)

mvwaddwstr(3XCURSES)

mvwchgat(3XCURSES)

mvwdelch(3CURSES)

mvwdelch(3XCURSES)

mvwgetch(3CURSES)

mvwgetch(3XCURSES)

mvwgetnstr(3XCURSES)

mvwgetnwstr(3CURSES)

mvwgetn_wstr(3XCURSES)

mvwgetstr(3CURSES)

mvwgetstr(3XCURSES)

mvwgetwch(3CURSES)

mvwget_wch(3XCURSES)

mvwgetwstr(3CURSES)

mvwget_wstr(3XCURSES)

mvwhline(3XCURSES)

mvwhline_set(3XCURSES)

mvwin(3CURSES)

mvwin(3XCURSES)

mvwinch(3CURSES)

mvwinch(3XCURSES)

mvwinchnstr(3CURSES)

mvwinchnstr(3XCURSES)

mvwinchstr(3CURSES)

mvwinchstr(3XCURSES)

mvwinnstr(3CURSES)

mvwinnstr(3XCURSES)

mvwinnwstr(3CURSES)

mvwinnwstr(3XCURSES)

mvwinsch(3CURSES)

mvwinsch(3XCURSES)

mvwinsnstr(3CURSES)

mvwinsnstr(3XCURSES)

mvwinsnwstr(3CURSES)

mvwins_nwstr(3XCURSES)

mvwinsstr(3CURSES)

mvwinsstr(3XCURSES)

mvwinstr(3CURSES)

mvwinstr(3XCURSES)

mvwinswch(3CURSES)

mvwins_wch(3XCURSES)

mvwinswstr(3CURSES)

mvwins_wstr(3XCURSES)

mvwinwch(3CURSES)

mvwin_wch(3XCURSES)

mvwinwchnstr(3CURSES)

mvwin_wchnstr(3XCURSES)

mvwinwchstr(3CURSES)

mvwin_wchstr(3XCURSES)

mvwinwstr(3CURSES)

mvwinwstr(3XCURSES)

mvwprintw(3CURSES)

mvwprintw(3XCURSES)

mvwscanw(3CURSES)

mvwscanw(3XCURSES)

mvwvline(3XCURSES)

mvwvline_set(3XCURSES)

napms(3CURSES)

napms(3XCURSES)

new_field(3CURSES)

new_fieldtype(3CURSES)

new_form(3CURSES)

new_item(3CURSES)

new_menu(3CURSES)

newpad(3CURSES)

newpad(3XCURSES)

new_page(3CURSES)

new_panel(3CURSES)

newterm(3CURSES)

newterm(3XCURSES)

newwin(3CURSES)

newwin(3XCURSES)

nl(3CURSES)

nl(3XCURSES)

nocbreak(3CURSES)

nocbreak(3XCURSES)

nodelay(3CURSES)

nodelay(3XCURSES)

noecho(3CURSES)

noecho(3XCURSES)

nonl(3CURSES)

nonl(3XCURSES)

noqiflush(3CURSES)

noqiflush(3XCURSES)

noraw(3CURSES)

noraw(3XCURSES)

notimeout(3CURSES)

notimeout(3XCURSES)

openpl(3PLOT)

openvt(3PLOT)

overlay(3CURSES)

overlay(3XCURSES)

overwrite(3CURSES)

overwrite(3XCURSES)

pair_content(3CURSES)

pair_content(3XCURSES)

PAIR_NUMBER(3XCURSES)

panel_above(3CURSES)

panel_below(3CURSES)

panel_hidden(3CURSES)

panel_move(3CURSES)

panel_new(3CURSES)

panels(3CURSES)

panel_show(3CURSES)

panel_top(3CURSES)

panel_update(3CURSES)

panel_userptr(3CURSES)

panel_window(3CURSES)

pechochar(3CURSES)

pechochar(3XCURSES)

pechowchar(3CURSES)

pecho_wchar(3XCURSES)

plot(3PLOT)

pnoutrefresh(3CURSES)

pnoutrefresh(3XCURSES)

point(3PLOT)

pos_form_cursor(3CURSES)

pos_menu_cursor(3CURSES)

post_form(3CURSES)

post_menu(3CURSES)

prefresh(3CURSES)

prefresh(3XCURSES)

printw(3CURSES)

printw(3XCURSES)

putp(3CURSES)

putp(3XCURSES)

putwin(3CURSES)

putwin(3XCURSES)

qiflush(3CURSES)

qiflush(3XCURSES)

raw(3CURSES)

raw(3XCURSES)

redrawwin(3CURSES)

redrawwin(3XCURSES)

refresh(3CURSES)

refresh(3XCURSES)

replace_panel(3CURSES)

reset_prog_mode(3CURSES)

reset_prog_mode(3XCURSES)

reset_shell_mode(3CURSES)

reset_shell_mode(3XCURSES)

resetty(3CURSES)

resetty(3XCURSES)

restartterm(3CURSES)

restartterm(3XCURSES)

ripoffline(3CURSES)

ripoffline(3XCURSES)

savetty(3CURSES)

savetty(3XCURSES)

scale_form(3CURSES)

scale_menu(3CURSES)

scanw(3CURSES)

scanw(3XCURSES)

scr_dump(3CURSES)

scr_dump(3XCURSES)

scr_init(3CURSES)

scr_init(3XCURSES)

scrl(3CURSES)

scrl(3XCURSES)

scroll(3CURSES)

scroll(3XCURSES)

scrollok(3CURSES)

scrollok(3XCURSES)

scr_restore(3CURSES)

scr_restore(3XCURSES)

scr_set(3CURSES)

scr_set(3XCURSES)

setcchar(3XCURSES)

set_current_field(3CURSES)

set_current_item(3CURSES)

set_curterm(3CURSES)

set_curterm(3XCURSES)

set_field_back(3CURSES)

set_field_buffer(3CURSES)

set_field_fore(3CURSES)

set_field_init(3CURSES)

set_field_just(3CURSES)

set_field_opts(3CURSES)

set_field_pad(3CURSES)

set_field_status(3CURSES)

set_field_term(3CURSES)

set_field_type(3CURSES)

set_fieldtype_arg(3CURSES)

set_fieldtype_choice(3CURSES)

set_field_userptr(3CURSES)

set_form_fields(3CURSES)

set_form_init(3CURSES)

set_form_opts(3CURSES)

set_form_page(3CURSES)

set_form_sub(3CURSES)

set_form_term(3CURSES)

set_form_userptr(3CURSES)

set_form_win(3CURSES)

set_item_init(3CURSES)

set_item_opts(3CURSES)

set_item_term(3CURSES)

set_item_userptr(3CURSES)

set_item_value(3CURSES)

set_max_field(3CURSES)

set_menu_back(3CURSES)

set_menu_fore(3CURSES)

set_menu_format(3CURSES)

set_menu_grey(3CURSES)

set_menu_init(3CURSES)

set_menu_items(3CURSES)

set_menu_mark(3CURSES)

set_menu_opts(3CURSES)

set_menu_pad(3CURSES)

set_menu_pattern(3CURSES)

set_menu_sub(3CURSES)

set_menu_term(3CURSES)

set_menu_userptr(3CURSES)

set_menu_win(3CURSES)

set_new_page(3CURSES)

set_panel_userptr(3CURSES)

setscrreg(3CURSES)

setscrreg(3XCURSES)

setsyx(3CURSES)

set_term(3CURSES)

setterm(3CURSES)

set_term(3XCURSES)

set_top_row(3CURSES)

setupterm(3CURSES)

setupterm(3XCURSES)

show_panel(3CURSES)

slk_attroff(3CURSES)

slk_attr_off(3XCURSES)

slk_attroff(3XCURSES)

slk_attron(3CURSES)

slk_attr_on(3XCURSES)

slk_attron(3XCURSES)

slk_attrset(3CURSES)

slk_attr_set(3XCURSES)

slk_attrset(3XCURSES)

slk_clear(3CURSES)

slk_clear(3XCURSES)

slk_color(3XCURSES)

slk_init(3CURSES)

slk_init(3XCURSES)

slk_label(3CURSES)

slk_label(3XCURSES)

slk_noutrefresh(3CURSES)

slk_noutrefresh(3XCURSES)

slk_refresh(3CURSES)

slk_refresh(3XCURSES)

slk_restore(3CURSES)

slk_restore(3XCURSES)

slk_set(3CURSES)

slk_set(3XCURSES)

slk_touch(3CURSES)

slk_touch(3XCURSES)

slk_wset(3XCURSES)

space(3PLOT)

standend(3CURSES)

standend(3XCURSES)

standout(3CURSES)

standout(3XCURSES)

start_color(3CURSES)

start_color(3XCURSES)

stdscr(3XCURSES)

subpad(3CURSES)

subpad(3XCURSES)

subwin(3CURSES)

subwin(3XCURSES)

syncok(3CURSES)

syncok(3XCURSES)

termattrs(3CURSES)

term_attrs(3XCURSES)

termattrs(3XCURSES)

termname(3CURSES)

termname(3XCURSES)

tgetent(3CURSES)

tgetent(3XCURSES)

tgetflag(3CURSES)

tgetflag(3XCURSES)

tgetnum(3CURSES)

tgetnum(3XCURSES)

tgetstr(3CURSES)

tgetstr(3XCURSES)

tgoto(3CURSES)

tgoto(3XCURSES)

tigetflag(3CURSES)

tigetflag(3XCURSES)

tigetnum(3CURSES)

tigetnum(3XCURSES)

tigetstr(3CURSES)

tigetstr(3XCURSES)

timeout(3CURSES)

timeout(3XCURSES)

top_panel(3CURSES)

top_row(3CURSES)

touchline(3CURSES)

touchline(3XCURSES)

touchwin(3CURSES)

touchwin(3XCURSES)

tparm(3CURSES)

tparm(3XCURSES)

tputs(3CURSES)

tputs(3XCURSES)

typeahead(3CURSES)

typeahead(3XCURSES)

unctrl(3CURSES)

unctrl(3XCURSES)

ungetch(3CURSES)

ungetch(3XCURSES)

ungetwch(3CURSES)

unget_wch(3XCURSES)

unpost_form(3CURSES)

unpost_menu(3CURSES)

untouchwin(3CURSES)

untouchwin(3XCURSES)

update_panels(3CURSES)

use_env(3CURSES)

use_env(3XCURSES)

vidattr(3CURSES)

vid_attr(3XCURSES)

vidattr(3XCURSES)

vidputs(3CURSES)

vid_puts(3XCURSES)

vidputs(3XCURSES)

vline(3XCURSES)

vline_set(3XCURSES)

vwprintw(3CURSES)

vw_printw(3XCURSES)

vwprintw(3XCURSES)

vwscanw(3CURSES)

vw_scanw(3XCURSES)

vwscanw(3XCURSES)

waddch(3CURSES)

waddch(3XCURSES)

waddchnstr(3CURSES)

waddchnstr(3XCURSES)

waddchstr(3CURSES)

waddchstr(3XCURSES)

waddnstr(3CURSES)

waddnstr(3XCURSES)

waddnwstr(3CURSES)

waddnwstr(3XCURSES)

waddstr(3CURSES)

waddstr(3XCURSES)

waddwch(3CURSES)

wadd_wch(3XCURSES)

waddwchnstr(3CURSES)

wadd_wchnstr(3XCURSES)

waddwchstr(3CURSES)

wadd_wchstr(3XCURSES)

waddwstr(3CURSES)

waddwstr(3XCURSES)

wadjcurspos(3CURSES)

wattr_get(3XCURSES)

wattroff(3CURSES)

wattr_off(3XCURSES)

wattroff(3XCURSES)

wattron(3CURSES)

wattr_on(3XCURSES)

wattron(3XCURSES)

wattrset(3CURSES)

wattr_set(3XCURSES)

wattrset(3XCURSES)

wbkgd(3CURSES)

wbkgd(3XCURSES)

wbkgdset(3CURSES)

wbkgdset(3XCURSES)

wbkgrnd(3XCURSES)

wbkgrndset(3XCURSES)

wborder(3CURSES)

wborder(3XCURSES)

wborder_set(3XCURSES)

wchgat(3XCURSES)

wclear(3CURSES)

wclear(3XCURSES)

wclrtobot(3CURSES)

wclrtobot(3XCURSES)

wclrtoeol(3CURSES)

wclrtoeol(3XCURSES)

wcolor_set(3XCURSES)

wcursyncup(3CURSES)

wcursyncup(3XCURSES)

wdelch(3CURSES)

wdelch(3XCURSES)

wdeleteln(3CURSES)

wdeleteln(3XCURSES)

wechochar(3CURSES)

wechochar(3XCURSES)

wechowchar(3CURSES)

wecho_wchar(3XCURSES)

werase(3CURSES)

werase(3XCURSES)

wgetbkgrnd(3XCURSES)

wgetch(3CURSES)

wgetch(3XCURSES)

wgetnstr(3CURSES)

wgetnstr(3XCURSES)

wgetnwstr(3CURSES)

wgetn_wstr(3XCURSES)

wgetstr(3CURSES)

wgetstr(3XCURSES)

wgetwch(3CURSES)

wget_wch(3XCURSES)

wgetwstr(3CURSES)

wget_wstr(3XCURSES)

whline(3CURSES)

whline(3XCURSES)

whline_set(3XCURSES)

winch(3CURSES)

winch(3XCURSES)

winchnstr(3CURSES)

winchnstr(3XCURSES)

winchstr(3CURSES)

winchstr(3XCURSES)

winnstr(3CURSES)

winnstr(3XCURSES)

winnwstr(3CURSES)

winnwstr(3XCURSES)

winsch(3CURSES)

winsch(3XCURSES)

winsdelln(3CURSES)

winsdelln(3XCURSES)

winsertln(3CURSES)

winsertln(3XCURSES)

winsnstr(3CURSES)

winsnstr(3XCURSES)

winsnwstr(3CURSES)

wins_nwstr(3XCURSES)

winsstr(3CURSES)

winsstr(3XCURSES)

winstr(3CURSES)

winstr(3XCURSES)

winswch(3CURSES)

wins_wch(3XCURSES)

winswstr(3CURSES)

wins_wstr(3XCURSES)

winwch(3CURSES)

win_wch(3XCURSES)

winwchnstr(3CURSES)

win_wchnstr(3XCURSES)

winwchstr(3CURSES)

win_wchstr(3XCURSES)

winwstr(3CURSES)

winwstr(3XCURSES)

wmove(3CURSES)

wmove(3XCURSES)

wmovenextch(3CURSES)

wmoveprevch(3CURSES)

wnoutrefresh(3CURSES)

wnoutrefresh(3XCURSES)

wprintw(3CURSES)

wprintw(3XCURSES)

wredrawln(3CURSES)

wredrawln(3XCURSES)

wrefresh(3CURSES)

wrefresh(3XCURSES)

wscanw(3CURSES)

wscanw(3XCURSES)

wscrl(3CURSES)

wscrl(3XCURSES)

wsetscrreg(3CURSES)

wsetscrreg(3XCURSES)

wstandend(3CURSES)

wstandend(3XCURSES)

wstandout(3CURSES)

wstandout(3XCURSES)

wsyncdown(3CURSES)

wsyncdown(3XCURSES)

wsyncup(3CURSES)

wsyncup(3XCURSES)

wtimeout(3CURSES)

wtimeout(3XCURSES)

wtouchln(3CURSES)

wtouchln(3XCURSES)

wunctrl(3XCURSES)

wvline(3CURSES)

wvline(3XCURSES)

wvline_set(3XCURSES)

curses

- introduction and overview of X/Open Curses

Description

The Curses screen management package conforms fully with Issue 4, Version 2 of the X/Open Curses specification. It provides a set of internationalized functions and macros for creating and modifying input and output to a terminal screen. This includes functions for creating windows, highlighting text, writing to the screen, reading from user input, and moving the cursor.

X/Open Curses is a terminal-independent package, providing a common user interface to a variety of terminal types. Its portability is facilitated by the Terminfo database which contains a compiled definition of each terminal type. By referring to the database information X/Open Curses gains access to low-level details about individual terminals.

X/Open Curses tailors its activities to the terminal type specified by the TERM environment variable. The TERM environment variable may be set in the Korn Shell (see ksh(1)) by typing:

export TERM=terminal_name

To set environment variables using other command line interfaces or shells, see the environ(5) manual page.

Three additional environment variables are useful, and can be set in the Korn Shell:

  1. If you have an alternate Terminfo database containing terminal types that are not available in the system default database /usr/share/lib/terminfo, you can specify the TERMINFO environment variable to point to this alternate database:

    export TERMINFO=path

    This path specifies the location of the alternate compiled Terminfo database whose structure consists of directory names 0 to 9 and a to z (which represent the first letter of the compiled terminal definition file name).

    The alternate database specified by TERMINFO is examined before the system default database. If the terminal type specified by TERM cannot be found in either database, the default terminal type dumb is assumed.

  2. To specify a window width smaller than your screen width (for example, in situations where your communications line is slow), set the COLUMNS environment variable to the number of vertical columns you want between the left and right margins:

    export COLUMNS=number

    The number of columns may be set to a number smaller than the screen size; however, if set larger than the screen or window width, the results are undefined.

    The value set using this environment variable takes precedence over the value normally used for the terminal.

  3. To specify a window height smaller than your current screen height (for example, in situations where your communications line is slow), override the LINES environment variable by setting it to a smaller number of horizontal lines:

    export LINES=number

    The number of lines may be set to a number smaller than the screen height; however, if set larger than the screen or window height, the results are undefined.

    The value set using this environment variable takes precedence over the value normally used for the terminal.

Data Types

X/Open Curses defines the following data types:

attr_t

An integral type that holds an OR-ed set of attributes. The attributes acceptable are those which begin with the WA_ prefix .

bool

Boolean data type.

cchar_t

A type that refers to a string consisting of a spacing wide character, up to 5 non-spacing wide characters, and zero or more attributes of any type. See Attributes, Color Pairs, and Renditions. A null cchar_t object terminates arrays of cchar_t objects.

chtype

An integral type whose values are formed by OR-ing an "unsigned char" with a color pair. and with zero or more attributes. The attributes acceptable are those which begin with the A_ prefix and COLOR_PAIR(3XCURSES)

SCREEN

An opaque data type associated with a terminal's display screen.

TERMINAL

An opaque data type associated with a terminal. It contains information about the terminal's capabilities (as defined by terminfo), the terminal modes, and current state of input/output operations.

wchar_t

An integral data type whose values represent wide characters.

WINDOW

An opaque data type associated with a window.

Screens, Windows, and Terminals

The X/Open Curses manual pages refer at various points to screens, windows (also subwindows, derived windows, and pads), and terminals. The following list defines each of these terms.

Screen

A screen is a terminal's physical output device. The SCREEN data type is associated with a terminal.

Window

Window objects are two-dimensional arrays of characters and their renditions. X/Open Curses provides stdscr, a default window which is the size of of the terminal screen. You can use the newwin(3XCURSES) function to create others.

To refer to a window, use a variable declared as WINDOW *. X/Open Curses includes both functions that modify stdscr, and more general versions that let you specify a window.

There are three sub-types of windows:

Subwindow

A window which has been created within another window (the parent window) and whose position has been specified with absolute screen coordinates. The derwin(3XCURSES) and subwin(3XCURSES) functions can be used to create subwindows.

Derived Window

A subwindow whose position is defined relative to the parent window's coordinates rather than in absolute terms.

Pad

A special type of window that can be larger than the screen. For more information, see the newpad(3XCURSES) man page.

Terminal

A terminal is the input and output device which character-based applications use to interact with the user. The TERMINAL data type is associated with such a device.

Attributes, Color Pairs, and Renditions

A character's rendition consists of its attributes (such as underlining or reverse video) and its color pair (the foreground and background colors). When using waddstr(3XCURSES), waddchstr(3XCURSES), wprintw(3XCURSES), winsch(3XCURSES), and so on, the window's rendition is combined with that character's renditions. The window rendition is the attributes and color set using the attroff(3XCURSES) and attr_off(3XCURSES) sets of functions. The window's background character and rendition are set with the bkgdset(3XCURSES) and bkgrndset(3XCURSES) sets of functions.

When spaces are written to the screen, the background character and window rendition replace the space. For example, if the background rendition and character is A_UNDERLINE|'*', text written to the window appears underlined and the spaces appear as underlined asterisks.

Each character written retains the rendition that it has obtained. This allows the character to be copied "as is" to or from a window with the addchstr(3XCURSES) or inch(3XCURSES) functions.

A_ Constant Values for Attributes

You can specify Attributes, Color Pairs, and Renditions attributes using the constants listed in the tables below. The following constants modify objects of type chtype:

Constant
Description
A_ALTCHARSET
Alternate character set
A_ATTRIBUTES
Bit-mask to extract attributes
A_BLINK
Blinking
A_BOLD
Bold
A_CHARTEXT
Bit-mask to extract a character
A_COLOR
Bit-mask to extract color-pair information
A_DIM
Half-bright
A_INVIS
Invisible
A_PROTECT
Protected
A_REVERSE
Reverse video
A_STANDOUT
Highlights specific to terminal
A_UNDERLINE
Underline
WA_ Constant Values for Attributes

The following constants modify objects of type attr_t:

Constant
Description
WA_ALTCHARSET
Alternate character set
WA_ATTRIBUTES
Attribute mask
WA_BLINK
Blinking
WA_BOLD
Bold
WA_DIM
Half-bright
WA_HORIZONTAL
Horizontal highlight
WA_INVIS
Invisible
WA_LEFT
Left highlist
WA_LOW
Low highlist
WA_PROTECT
Protected
WA_REVERSE
Reverse video
WA_RIGHT
Right highlight
WA_STANDOUT
Highlights specific to terminal
WA_TOP
Top highlight
WA_UNDERLINE
Underline
WA_VERTICAL
Vertical highlight
Color Macros

Colors always appear in pairs; the foreground color of the character itself and the background color of the field on which it is displayed. The following color macros are defined:

Macro
Description
COLOR_BLACK
Black
COLOR_BLUE
Blue
COLOR_GREEN
Green
COLOR_CYAN
Cyan
COLOR_RED
Red
COLOR_MAGENTA
Magenta
COLOR_YELLOW
Yellow
COLOR_WHITE
White

Together, a character's attributes and its color pair form the character's rendition. A character's rendition moves with the character during any scrolling or insert/delete operations. If your terminal lacks support for the specified rendition, X/Open Curses may substitute a different rendition.

The COLOR_PAIR(3XCURSES) function modifies a chtype object. The PAIR_NUMBER(3XCURSES) function extracts the color pair from a chtype object.

Functions for Modifying a Window's Color

The following functions modify a window's color:

Function
Description
attr_set(), wattr_set( )
Change the window's rendition.
color_set(), wcolor_set( )
Set the window's color

Non-Spacing Characters

When the wcwidth(3C) function returns a width of zero for a character, that character is called a non-spacing character. Non-spacing characters can be written to a window. Each non-spacing character is associated with a spacing character (that is, one which does not have a width of zero) and modifies that character. You cannot address a non-spacing character directly. Whenever you perform an X/Open Curses operation on the associated character, you are implicitly addressing the non-spacing character.

Non-spacing characters do not have a rendition. For functions that use wide characters and a rendition, X/Open Curses ignores any rendition specified for non-spacing characters. Multi-column characters have one rendition that applies to all columns spanned.

Complex Characters

The cchar_t date type represents a complex character. A complex character may contain a spacing character, its associated non-spacing characters, and its rendition. This implementation of complex characters supports up to 5 non-spacing characters for each spacing character.

When a cchar_t object representing a non-spacing complex character is written to the screen, its rendition is not used, but rather it becomes associated with the rendition of the existing character at that location. The setcchar(3XCURSES) function initializes an object of type cchar_t. The getcchar(3XCURSES) function extracts the contents of a cchar_t object.

Display Operations

In adding internationalization support to X/Open Curses, every attempt was made to minimize the number of changes to the historical CURSES package. This enables programs written to use the historical implementation of CURSES to use the internationalized version with little or no modification. The following rules apply to the internationalized X/Open Curses package:

Overlapping Windows

When windows overlap, it may be necessary to overwrite only part of a multi-column character. As mentioned earlier, the non-overwritten portions are replaced with the background character. This results in issues concerning the overwrite(3XCURSES), overlay(3XCURSES), copywin(3XCURSES), wnoutrefresh(3XCURSES), and wrefresh(3XCURSES) functions.

Special Characters

Some functions assign special meanings to certain special characters:

Backspace

Moves the cursor one column towards the beginning of the line. If the cursor was already at the beginning of the line, it remains there. All subsequent characters are added or inserted at this point.

Carriage Return

Moves the cursor to the beginning of the current line. If the cursor was already at the beginning of the line, it remains there. All subsequent characters are added or inserted at this point.

Newline

When adding characters, X/Open Curses fills the remainder of the line with the background character (effectively truncating the newline) and scrolls the window as described earlier. All subsequent characters are inserted at the start of the new line.

When inserting characters, X/Open Curses fills the remainder of the line with the background character (effectively truncating the line), moves the cursor to the beginning of a new line, and scrolls the window as described earlier. All subsequent characters are placed at the start of the new line.

Tab

moves subsequent characters to next horizontal tab strop. Default tab stops are set at 0, 8, 16, and so on.

When adding or inserting characters, X/Open Curses inserts or adds the background character into each column until the next tab stop is reached. If there are no remaining tab stops on the current line, wrapping and scrolling occur as described earlier.

Control Characters

When X/Open Curses functions perform special character processing, they convert control characters to the ^X notation, where X is a single-column character (uppercase, if it is a letter) and writes that notation to the window. Functions that retrieve text from the window will retrieve the converted notation not the original.

X/Open Curses displays non-printable bytes, that have their high bit set, using the M-X meta notation where X is the non-printable byte with its high bit turned off.

Input Processing

There are four input modes possible with X/Open Curses that affect the behavior of input functions like getch(3XCURSES) and getnstr(3XCURSES).

Line Canonical (Cooked)

In line input mode, the terminal driver handles the input of line units as well as SIGERASE and SIGKILL character processing. See termio(7I) for more information.

In this mode, the getch() and getnstr() functions will not return until a complete line has been read by the terminal driver, at which point only the requested number of bytes/characters are returned. The rest of the line unit remains unread until subsequent call to the getch() or getnstr() functions.

The functions nocbreak(3XCURSES) and noraw(3XCURSES) are used to enter this mode. These functions are described on the cbreak(3XCURSES) man page which also details which termios flags are enabled.

Of the modes available, this one gives applications the least amount of control over input. However, it is the only input mode possible on a block mode terminal.

cbreak Mode

Byte/character input provides a finer degree of control. The terminal driver passes each byte read to the application without interpreting erase and kill characters. It is the application's responsibility to handle line editing. It is unknown whether the signal characters (SIGINTR, SIGQUIT, SIGSUSP) and flow control characters (SIGSTART, SIGSTOP) are enabled. To ensure that they are, call the noraw() function first, then call the cbreak() function.

halfdelay Mode

This is the same as the cbreak() mode with a timeout. The terminal driver waits for a byte to be received or for a timer to expire, in which case the getch() function either returns a byte or ERR respectively. This mode overrides timeouts set for an individual window with the wtimeout() function.

raw Mode

This mode provides byte/character input with the most control for an application. It is similar to cbreak() mode, but also disables signal character processing (SIGINTR, SIGSUSP, SIGQUIT) and flow control processing (SIGSTART, SIGSTOP) so that the application can process them as it wants.

These modes affect all X/Open Curses input. The default input mode is inherited from the parent process when the application starts up.

A timeout similar to halfdelay(3XCURSES) can be applied to individual windows (see timeout(3XCURSES)). The nodelay(3XCURSES) function is equivalent to setting wtimeout(3XCURSES) for a window with a zero timeout (non-blocking) or infinite delay (blocking).

To handle function keys, keypad(3XCURSES) must be enabled. When it is enabled, the getch() function returns a KEY_ constant for a uniquely encoded key defined for that terminal. When keypad() is disabled, the getch() function returns the individual bytes composing the function key (see getch(3XCURSES) and wget_wch(3XCURSES)). By default, keypad() is disabled.

When processing function keys, once the first byte is recognized, a timer is set for each subsequent byte in the sequence. If any byte in the function key sequence is not received before the timer expires, the bytes already received are pushed into a buffer and the original first byte is returned. Subsequent X/Open Curses input would take bytes from the buffer until exhausted, after which new input from the terminal will be requested. Enabling and disabling of the function key interbyte timer is handled by the notimeout(3XCURSES) function. By default, notimeout() is disabled (that is, the timer is used).

X/Open Curses always disables the terminal driver's echo processing. The echo(3XCURSES) and noecho(3XCURSES) functions control X/Open Curses software echoing. When software echoing is enabled, X/Open Curses input functions echo printable characters, control keys, and meta keys in the input window at the last cursor position. Functions keys are never echoed. When software echoing is disabled, it is the application's responsibility to handle echoing.

Examples

Example 1 Copying Single-Column Characters Over Single-Column Characters

In the upcoming examples, some characters have special meanings:

copywin(s, t, 0, 1, 0, 1, 1, 3, 0)

            s               t         →     t
        abcdef        ......          .bcd..
        ghijkl        ......          .hij..

There are no special problems with this situation.

Example 2 Copying Multi-column Characters Over Single-Column Characters

copywin(s, t, 0, 1, 0, 1, 1, 3, 0)

            s               t         →     t
        a[]def        ......          .[]d..
        gh()kl        ......          .h()..

There are no special problems with this situation.

Example 3 Copying Single-Column Characters From Source Overlaps Multi-column Characters In Target

copywin(s, t, 0, 1, 0, 1, 1, 3, 0)

            s               t         →     t
        abcdef        []....          #bcd..
        ghijk tol        ...().          .hij#.

Overwriting multi-column characters in t has resulted in the # background characters being required to erase the remaining halves of the target's multi-column characters.

Example 4 Copy Incomplete Multi-column Characters From Source To Target.

copywin(s, t, 0, 1, 0, 1, 1, 3, 0)

            s               t         →     t
        []cdef        123456          []cd56
        ghi()l        789012          7hi()2

The ] and ( halves of the multi-column characters have been copied from the source and expanded in the target outside of the specified target region.

Consider a pop-up dialog box that contains single-column characters and a base window that contains multi-column characters and you do the following:

save=dupwin(dialog);     /* create backing store */ 
overwrite(cursor, save); /* save region to be overlayed */ 
wrefresh(dialog);        /* display dialog */ 
wrefresh(save);          /* restore screen image */ 
delwin(save);            /* release backing store */

You can use code similar to this to implement generic popup() and popdown() routines in a variety of CURSES implementations (including BSD UNIX, and UNIX System V). In the simple case where the base window contains single-column characters only, it would correctly restore the image that appeared on the screen before the dialog box was displayed.

However, with multi-column characters, the overwrite() function might save a region with incomplete multi-column characters. The wrefresh(dialog) statement results in the behavior described in example 3 above. The behavior described in this example (that is, example 4) allows the wrefresh(save) statement to restore the window correctly.

Example 5 Copying An Incomplete Multi-column Character To Region Next To Screen Margin (Not A Window Edge)

Two cases of copying an incomplete multi-column character to a region next to a screen margin follow:

copywin(s, t, 0, 1, 0, 0, 1, 2, 0)

            s               t         →     t
        []cdef        123456          #cd456
        ghijkl        789012          hij012

The background character (#) replaces the ] character that would have been copied from the source, because it is not possible to expand the multi-column character to its complete form.

copywin(s, t, 0, 1, 0, 3, 1, 5, 0)

            s               t         →     t
        abcdef        123456          123bcd
        ghi()l        789012          789hi#

This second example is the same as the first, but with the right margin.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Unsafe
Standard

See Also

ksh(1), COLOR_PAIR(3XCURSES), PAIR_NUMBER(3XCURSES), addchstr(3XCURSES), attr_off(3XCURSES), attroff(3XCURSES), bkgdset(3XCURSES), bkgrndset(3XCURSES), cbreak(3XCURSES), copywin(3XCURSES), derwin(3XCURSES), echo(3XCURSES), getcchar(3XCURSES), getch(3XCURSES), getnstr(3XCURSES), halfdelay(3XCURSES), inch(3XCURSES), keypad(3XCURSES), libcurses(3XCURSES), newpad(3XCURSES), newwin(3XCURSES), nocbreak(3XCURSES), nodelay(3XCURSES), noecho(3XCURSES), noraw(3XCURSES), notimeout(3XCURSES), overlay(3XCURSES), overwrite(3XCURSES), setcchar(3XCURSES), subwin(3XCURSES), timeout(3XCURSES), waddchstr(3XCURSES), waddstr(3XCURSES), wcwidth(3C), wget_wch(3XCURSES), winsch(3XCURSES), wnoutrefresh(3XCURSES), wprintw(3XCURSES), wrefresh(3XCURSES), wtimeout(3XCURSES), attributes(5), environ(5), standards(5), termio(7I)