Next: Programowanie portów We/Wy
Up: Programowanie dźwięku
Previous: Zdolności łańcuchowe
  Contents
W następującej części znajdziesz przegląd różnic pomiędzy różnymi
pakietami (n)curses. Pierwsza kolumna zawiera bsd-curses ( taką jak w
Slackware 2.1.0 i Sun-OS 4.x ), druga sysv-curses ( Sun-OS 5.4 / Solaris 2 ),
trzecia ncurses ( wersja 1.8.6). Jako tłumacz dodam, że uaktualniłem stan
implementacji przeglądając źródła ( u mnie ncurses 5 ).
Czwarta kolumna zawiera odwołanie do strony, na której funkcja została opisana
( jeżeli była ).
- x
- pakiet posiada tę funkcję
- n
- funkcja niezaimplementowana
| Funkcja |
BSD |
SYSV |
Nc. |
Strona |
Funkcja |
BSD |
SYSV |
Nc. |
Strona |
| _init_trace() |
|
|
x |
|
_traceattr(mode) |
|
|
x |
|
|
_tracef(char *, ...) |
|
|
x |
|
addbytes(...) |
x |
|
|
|
|
addch(ch) |
x |
x |
x |
|
addchnstr(...) |
|
x |
x |
|
|
addchstr(chstr) |
|
x |
x |
|
addnstr(...) |
|
x |
x |
|
|
addnwstr(...) |
|
x |
x |
|
addstr(str) |
x |
x |
x |
|
|
addwch(...) |
|
x |
|
|
addwchnstr(...) |
|
x |
|
|
|
addwchstr(...) |
|
x |
|
|
addwstr(...) |
|
x |
x |
|
|
adjcurspos() |
|
x |
|
|
attroff(attr) |
|
x |
x |
|
|
attron(attr) |
|
x |
x |
|
attrset(attr) |
|
x |
x |
|
|
baudrate() |
x |
x |
x |
|
beep() |
|
x |
x |
|
|
bkgd(ch) |
|
x |
x |
|
bkgdset(ch) |
|
x |
x |
|
|
border(...) |
|
x |
x |
|
box(...) |
x |
x |
x |
|
|
can_change_color() |
|
x |
x |
|
cbreak() |
x |
x |
x |
|
|
clear() |
x |
x |
x |
|
clearok(...) |
x |
x |
x |
|
|
clrtobot() |
x |
x |
x |
|
clrtoeol() |
x |
x |
x |
|
|
color_content(...) |
|
x |
x |
|
copywin(...) |
|
x |
x |
|
|
crmode() |
x |
x |
x |
|
curs_set(bf) |
|
x |
x |
|
|
curserr() |
|
x |
|
|
def_prog_mode() |
|
x |
x |
|
|
def_shell_mode() |
|
x |
x |
|
del_curterm(...) |
|
x |
x |
|
|
delay_output(ms) |
|
x |
x |
|
delch() |
x |
x |
x |
|
|
deleteln() |
x |
x |
x |
|
delscreen(...) |
|
x |
x |
|
|
delwin(win) |
x |
x |
x |
|
derwin(...) |
|
x |
x |
|
|
doupdate() |
|
x |
x |
|
drainio(int) |
|
x |
|
|
|
dupwin(win) |
|
x |
x |
|
echo() |
x |
x |
x |
|
|
echochar(ch) |
|
x |
x |
|
echowchar(ch) |
|
x |
|
|
|
endwin() |
x |
x |
x |
|
erase() |
x |
x |
x |
|
|
erasechar() |
x |
x |
x |
|
filter() |
|
x |
x |
|
|
flash() |
|
x |
x |
|
flushinp() |
|
x |
x |
|
|
flushok(...) |
x |
|
x |
|
garbagedlines(...) |
|
x |
|
|
|
garbagedwin(win) |
|
x |
|
|
getattrs(win) |
|
x |
x |
|
|
getbegyx(...) |
|
x |
x |
|
getbkgd(win) |
|
x |
x |
|
|
getbmap() |
|
x |
|
|
getcap(str) |
x |
|
|
|
|
getch() |
x |
x |
x |
|
getmaxx(win) |
|
x |
x |
|
|
getmaxy(win) |
|
x |
x |
|
getmaxyx(...) |
|
x |
x |
|
|
getmouse() |
|
x |
x |
|
getnwstr(...) |
|
x |
|
|
|
getparyx(...) |
|
x |
x |
|
getstr(str) |
x |
x |
x |
|
|
getsyx(...) |
|
x |
x |
|
gettmode() |
x |
x |
|
|
|
getwch(...) |
|
x |
|
|
getwin(...) |
|
x |
x |
|
|
getwin(FILE *) |
|
x |
x |
|
getwstr(...) |
|
x |
|
|
|
getyx(...) |
x |
x |
x |
|
halfdelay(t) |
|
x |
x |
|
|
has_colors() |
|
x |
x |
|
has_ic() |
|
x |
x |
|
|
has_il() |
|
x |
x |
|
hline(...) |
|
x |
x |
|
|
idcok(...) |
|
x |
x |
|
idlok(...) |
x |
x |
x |
|
|
immedok(...) |
|
x |
x |
|
inch() |
x |
x |
x |
|
|
inchnstr(...) |
|
x |
x |
|
inchstr(...) |
|
x |
x |
|
|
init_color(...) |
|
x |
x |
|
init_pair(...) |
|
x |
x |
|
|
initscr() |
x |
x |
x |
|
innstr(...) |
|
x |
x |
|
|
innwstr(...) |
|
x |
x |
|
insch(c) |
x |
x |
x |
|
|
insdelln(n) |
|
x |
x |
|
insertln() |
x |
x |
x |
|
|
insnstr(...) |
|
x |
x |
|
insstr(str) |
|
x |
x |
|
|
instr(str) |
|
x |
x |
|
inswch(...) |
|
x |
|
|
|
inswstr(...) |
|
x |
|
|
intrflush(...) |
|
x |
x |
|
|
inwch(...) |
|
x |
|
|
inwchnstr(...) |
|
x |
|
|
|
inwchstr(...) |
|
x |
|
|
inwchstr(...) |
|
x |
|
|
|
inwstr(...) |
|
x |
x |
|
is_linetouched(...) |
|
x |
x |
|
|
is_wintouched(win) |
|
x |
x |
|
isendwin() |
|
x |
x |
|
|
keyname(c) |
|
x |
x |
|
keypad(...) |
|
x |
x |
|
|
killchar() |
x |
x |
x |
|
leaveok(...) |
x |
x |
x |
|
|
longname() |
x |
x |
x |
|
map_button(long) |
|
x |
|
|
|
meta(...) |
|
x |
x |
|
mouse_off(long) |
|
x |
|
|
|
mouse_on(long) |
|
x |
|
|
mouse_set(long) |
|
x |
|
|
|
move(...) |
x |
x |
x |
|
movenextch() |
|
x |
|
|
|
moveprevch() |
|
x |
|
|
mvaddbytes(...) |
x |
|
|
|
|
mvaddch(...) |
x |
x |
x |
|
mvaddchnstr(...) |
|
x |
x |
|
|
mvaddchstr(...) |
|
x |
x |
|
mvaddnstr(...) |
|
x |
x |
|
|
mvaddnwstr(...) |
|
x |
x |
|
mvaddstr(...) |
x |
x |
x |
|
|
mvaddwch(...) |
|
x |
|
|
mvaddwchnstr(...) |
|
x |
|
|
|
mvaddwchstr(...) |
|
x |
|
|
mvaddwstr(...) |
|
x |
x |
|
|
mvcur(...) |
x |
x |
x |
|
mvdelch(...) |
x |
x |
x |
|
|
mvderwin(...) |
|
x |
x |
|
mvgetch(...) |
x |
x |
x |
|
|
mvgetnwstr(...) |
|
x |
|
|
mvgetstr(...) |
x |
x |
x |
|
|
mvgetwch(...) |
|
x |
|
|
mvgetwstr(...) |
|
x |
|
|
|
mvhline(...) |
|
x |
x |
|
mvinch(...) |
x |
x |
x |
|
|
mvinchnstr(...) |
|
x |
x |
|
mvinchstr(...) |
|
x |
x |
|
|
mvinnstr(...) |
|
x |
x |
|
mvinnwstr(...) |
|
x |
x |
|
|
mvinsch(...) |
x |
x |
x |
|
mvinsnstr(...) |
|
x |
x |
|
|
mvinsnwstr(...) |
|
x |
|
|
mvinsstr(...) |
|
x |
x |
|
|
mvinstr(...) |
|
x |
x |
|
mvinswch(...) |
|
x |
|
|
|
mvinswstr(...) |
|
x |
|
|
mvinwch(...) |
|
x |
x |
mvwin_wch |
|
mvinwchnstr(...) |
|
x |
x |
mvwin_wchnstr |
mvinwchstr(...) |
|
x |
x |
mvwin_wchstr |
|
mvinwstr(...) |
|
x |
x |
|
mvprintw(...) |
x |
x |
x |
|
|
mvscanw(...) |
x |
x |
x |
|
mvvline(...) |
|
x |
x |
|
|
mvwaddbytes(...) |
x |
|
|
|
mvwaddch(...) |
x |
x |
x |
|
|
mvwaddchnstr(...) |
|
x |
x |
|
mvwaddchstr(...) |
|
x |
x |
|
|
mvwaddnstr(...) |
|
x |
x |
|
mvwaddnwstr(...) |
|
x |
x |
|
|
mvwaddstr(...) |
x |
x |
x |
|
mvwaddwch(...) |
|
x |
|
|
|
mvwaddwchnstr(...) |
|
x |
|
|
mvwaddwchstr(...) |
|
x |
|
|
|
mvwaddwstr(...) |
|
x |
x |
|
mvwdelch(...) |
x |
x |
x |
|
|
mvwgetch(...) |
x |
x |
x |
|
mvwgetnwstr(...) |
|
x |
|
|
|
mvwgetstr(...) |
x |
x |
x |
|
mvwgetwch(...) |
|
x |
|
|
|
mvwgetwstr(...) |
|
x |
|
|
mvwhline(...) |
|
x |
x |
|
|
mvwin(...) |
x |
x |
x |
|
mvwinch(...) |
x |
x |
x |
|
|
mvwinchnstr(...) |
|
x |
x |
|
mvwinchstr(...) |
|
x |
x |
|
|
mvwinnstr(...) |
|
x |
x |
|
mvwinnwstr(...) |
|
x |
|
|
|
mvwinsch(...) |
x |
x |
x |
|
mvwinsnstr(...) |
|
x |
x |
|
|
mvwinsstr(...) |
|
x |
x |
|
mvwinstr(...) |
|
x |
x |
|
|
mvwinswch(...) |
|
x |
|
|
mvwinswstr(...) |
|
x |
|
|
|
mvwinwch(...) |
|
x |
|
|
mvwinwchnstr(...) |
|
x |
|
|
|
mvwinwchstr(...) |
|
x |
|
|
mvwinwstr(...) |
|
x |
|
|
|
mvwprintw(...) |
x |
x |
x |
|
mvwscanw(...) |
x |
x |
x |
|
|
mvwvline(...) |
|
x |
x |
|
napms(ms) |
|
x |
x |
|
|
newkey(...) |
|
x |
|
|
newpad(...) |
|
x |
x |
|
|
newscreen(...) |
|
x |
|
|
newterm(...) |
|
x |
x |
|
|
newwin(...) |
x |
x |
x |
|
nl() |
x |
x |
x |
|
|
nocbreak() |
x |
x |
x |
|
nocrmode() |
x |
x |
x |
|
|
nodelay(...) |
|
x |
x |
|
noecho() |
x |
x |
x |
|
|
nonl() |
x |
x |
x |
|
noqiflush() |
|
x |
x |
|
|
noraw() |
x |
x |
x |
|
notimeout(...) |
|
x |
x |
|
|
overlay(...) |
x |
x |
x |
|
overwrite(...) |
x |
x |
x |
|
|
pair_content(...) |
|
x |
x |
|
pechochar(...) |
|
x |
x |
|
|
pechowchar(...) |
|
x |
|
|
pnoutrefresh(...) |
|
x |
x |
|
|
prefresh(...) |
|
x |
x |
|
printw(...) |
x |
x |
x |
|
|
putp(char *) |
|
x |
x |
|
putwin(...) |
|
x |
x |
|
|
qiflush() |
|
x |
x |
|
raw() |
x |
x |
x |
|
|
redrawwin(win) |
|
x |
x |
|
refresh() |
x |
x |
x |
|
|
request_mouse_pos() |
|
x |
|
|
reset_prog_mode() |
|
x |
x |
|
|
reset_shell_mode() |
|
x |
x |
|
resetty() |
x |
x |
x |
|
|
restartterm(...) |
|
x |
x |
|
ripoffline(...) |
|
x |
x |
|
|
savetty() |
x |
x |
x |
|
scanw(...) |
x |
x |
x |
|
|
scr_dump(char *) |
|
x |
x |
|
scr_init(char *) |
|
x |
x |
|
|
scr_restore(char *) |
|
x |
x |
|
scr_set(char *) |
|
x |
x |
|
|
scrl(n) |
|
x |
x |
|
scroll(win) |
x |
x |
x |
|
|
scrollok(...) |
x |
x |
x |
|
set_curterm(...) |
|
x |
x |
|
|
set_term(...) |
|
x |
x |
|
setcurscreen(SCREEN *) |
|
x |
|
|
|
setscrreg(...) |
|
x |
x |
|
setsyx(...) |
|
x |
x |
|
|
setterm(char *) |
x |
x |
x |
|
setupterm(...) |
|
x |
x |
|
|
slk_attroff(attr) |
|
x |
x |
|
slk_attron(attr) |
|
x |
x |
|
|
slk_attrset(attr) |
|
x |
x |
|
slk_clear() |
|
x |
x |
|
|
slk_init(fmt) |
|
x |
x |
|
slk_label(labnum) |
|
x |
x |
|
|
slk_noutrefresh() |
|
x |
x |
|
slk_refresh() |
|
x |
x |
|
|
slk_restore() |
|
x |
x |
|
slk_set(...) |
|
x |
x |
|
|
slk_touch() |
|
x |
x |
|
standend() |
x |
x |
x |
|
|
standout() |
x |
x |
x |
|
start_color() |
|
x |
x |
|
|
subpad(...) |
|
x |
x |
|
subwin(...) |
x |
x |
x |
|
|
syncok(...) |
|
x |
x |
|
termattrs() |
|
x |
x |
|
|
termname() |
|
x |
x |
|
tgetent(...) |
|
x |
x |
|
|
tgetflag(char [2]) |
|
x |
x |
|
tgetnum(char [2]) |
|
x |
x |
|
|
tgetstr(...) |
|
x |
x |
|
tgoto(...) |
|
x |
x |
|
|
tigetflag(...) |
|
x |
x |
|
tigetnum(...) |
|
x |
x |
|
|
tigetstr(...) |
|
x |
x |
|
timeout(t) |
|
x |
x |
|
|
touchline(...) |
x |
x |
x |
|
touchwin(win) |
x |
x |
x |
|
|
tparm(...) |
|
x |
x |
|
tputs(...) |
|
|
x |
|
|
traceoff() |
|
x |
x |
|
traceon() |
|
x |
x |
|
|
typeahead(fd) |
|
x |
x |
|
unctrl(chtype c) |
|
x |
x |
|
|
ungetch(ch) |
|
x |
x |
|
ungetwch(c) |
|
x |
|
|
|
untouchwin(win) |
|
x |
x |
|
use_env(bf) |
|
x |
x |
|
|
vidattr(...) |
|
x |
x |
|
vidputs(...) |
|
x |
x |
|
|
vidupdate(...) |
|
x |
|
|
vline(...) |
|
x |
x |
|
|
vwprintw(...) |
|
x |
x |
|
vwscanw(...) |
|
x |
x |
|
|
waddbytes(...) |
x |
|
|
|
waddch(...) |
x |
x |
x |
|
|
waddchnstr(...) |
|
x |
x |
|
waddchstr(...) |
|
x |
x |
|
|
waddnstr(...) |
|
x |
x |
|
waddnwstr(...) |
|
x |
x |
|
|
waddstr(...) |
x |
x |
x |
|
waddwch(...) |
|
x |
|
|
|
waddwchnstr(...) |
|
x |
|
|
waddwchstr(...) |
|
x |
|
|
|
waddwstr(...) |
|
x |
x |
|
wadjcurspos(win) |
|
x |
|
|
|
wattroff(...) |
|
x |
x |
|
wattron(...) |
|
x |
x |
|
|
|