GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ncurses(3) FreeBSD Library Functions Manual ncurses(3)

ncurses - CRT screen handling and optimization package

#include <ncurses.h>

ncurses ?饤?֥????롼?????Ǥϡ?ü???˰?¸???ʤ???ˡ?ǡ??????ʤ??? ??Ŭ?????ƥ????饯?????̤򹹿??Ǥ??ޤ???

ncurses ?롼?????ϡ?System V Release 4 UNIX ?? curses(3) ?饤?֥????򥨥ߥ??졼?Ȥ??ޤ????????????????Ǽ?ͳ?˺?ʬ?ۤǤ??ޤ??? System V Release 4 UNIX ?? curses ?Ȥΰ㤤?ˤĤ??Ƥϡ????줾???? ?ޥ˥奢???ڡ????ΥХ????????????????????ޤ????㤤?Ͼ????????ʤ??? ncurses ??ȯŸ?????ˤĤ졢?㤤?Ͼ??ʤ??ʤ??ޤ???

???Υ롼?????????Ѥ??Ƥ????ץ????????ϡ?-lncurses ???ץ??????? ?ޤ???(???????줿??????) -ldcurses ?? -lpcurses ?ʤɤ? ?ǥХå??饤?֥????? 1 ?Ĥ????Ѥ??ƥ??󥯤???ɬ?פ??????ޤ??? dcurses ?饤?֥????ϡ?curses ???????????򵭽Ҥ????ȥ졼???????????????ޤ??? pcurses ?饤?֥????ϡ??ץ??ե????벽?򥵥ݡ??Ȥ??Ƥ??ޤ???

ncurses ?ѥå??????Ǥϡ????????Ρ????????ɥ????ѥåɤ???? ???????ɥ??ȥѥåɤؤν??ϡ?ü?????Ϥ??ɹ??ߡ?ü????ncurses ???ϤȽ??Ϥ? ???ץ??????????桢?Ķ????????롼???󡢥??顼??????եȥ??٥륭???λ??ѡ? terminfo ??ǽ???????٥? ncurses ?롼?????ؤΥ????????????ݡ??? ?????Ƥ??ޤ???

?롼?????????????????ˤϡ??롼???? initscr ?? newterm ???ƤӽФ??Ƥ??顢???????ɥ??Ȳ??̤????????뤽??¾?Υ롼?????????Ѥ??? ɬ?פ??????ޤ?????λ???ˤϡ??롼???? endwin ???ƤӽФ??Ƥ????????? ???????????? 1 ???? 1 ?????饯?????????Ϥ????ˤ? (???󥿥饯?ƥ??֤? ???̼?Ƴ?ΤۤȤ??ɤΥץ?????????ɬ??)???ʲ??Υ??????󥹤????Ѥ??ޤ???

initscr(); cbreak(); noecho();

?ۤȤ??ɤΥץ????????Ǥϡ??ʲ??Υ??????󥹤????Ѥ??ޤ???

nonl(); intrflush(stdscr,FALSE); keypad(stdscr,TRUE);

ncurses ?ץ??????????¹Ԥ??????ˤϡ?ü???Υ??֥??ȥåפ????ꤷ?? ?????????Ƥ????н?????ʸ?????????Ϥ???ɬ?פ??????ޤ??? ?????ϡ????????Ķ??ѿ? TERM ?򥨥????ݡ??Ȥ??????ǥ??ޥ??? tput init ???¹Ԥ????йԤʤ??ޤ??? [?ܺ٤ˤĤ??Ƥϡ?terminfo(5) ?򻲾Ȥ??Ƥ?????????]

ncurses ?饤?֥????Ǥϡ?CRT ???̤????Τ???????ɽ???????饯???? 2 ?????????Ȥߤʤ??롢windows ?Ȥ????ǡ?????¤???????Ǥ??ޤ??? ?ǥե????ȥ??????ɥ??? stdscr ?Ȥ??????Τǡ?????????ü?????̤Υ????? ?ˤʤäƤ??ޤ???????¾?Υ??????ɥ??ϡ?newwin ?Ǻ????Ǥ??ޤ???

???????ɥ??ϡ?WINDOW * ?Τ褦???????????ѿ??ǻ??Ȥ??ޤ??? ???Υǡ?????¤?ϡ??ޥ˥奢?륻???????? 3 ?Υڡ????Dz??⤷?Ƥ????롼???? (̾??????curs_?פǻϤޤ?????)??????ޤ??????Τ????Ǥ?????Ū?ʥ롼?????ϡ? move ?? addch?Ǥ??????Υ롼?????ΰ???Ū?ʥС????????ϡ?̾???? w ?ǻϤޤ??ޤ??????ΥС????????Ǥϥ??????ɥ????????Ǥ??ޤ??? w ?ǻϤޤ??ʤ??롼?????? stdscr ?˱ƶ????ޤ???

?롼?????????Ѥ??ƥ??????ɥ???????????Ǥ? refresh ???ƤӽФ??졢 ?桼???? CRT ???̤? stdscr ?Τ褦??ɽ???????ؼ??? ncurses ?? ?Ф????ޤ??????????ɥ??Υ????饯???Υ????פϼºݤˤ? chtype (?????饯????°???ǡ???)?ʤΤǡ? ?????饯???Τ???¾?ξ????⤽?줾???Υ????饯???ȤȤ?????¸?Ǥ??ޤ???

?ѥå??Ȥ????ü??ʥ??????ɥ????????Ǥ??ޤ????ѥåɤϲ??̤Υ??????? ???¤????ʤ????????ɥ??ǡ??ѥåɤ????Ƥϴ?????ɽ??????ɬ?פ??????ޤ????? ?ܺ٤ˤĤ??Ƥ? curs_pad(3) ?򻲾Ȥ??Ƥ?????????

?????饯???β??̤ؤ???????¾?ˡ??ӥǥ?°???ȥ??顼?⥵?ݡ??? ?????Ƥ????Τǡ??????????С????ӥǥ??????顼?ʤɤΥ⡼?ɤǡ????Τ褦?? ɽ????ĥ??ǽ?򥵥ݡ??Ȥ??Ƥ???ü???˥????饯????ɽ???Ǥ??ޤ????饤?????? ?????饯???????Ϥ????褦?˻??ꤹ?뤳?Ȥ??Ǥ??ޤ??? ncurses ?ϡ????ϻ??˥????????ץ??????󥹤??????????????????? ?ե??󥯥????󥭡??? 1 ?Ĥ??ͤ??Ѵ??Ǥ??ޤ??? ?ӥǥ?°?????饤?????襭???饯?????????ͤǤϡ?A_REVERSE?? ACS_HLINE??KEY_LEFT ?Τ褦?ʡ?<ncurses.h> ?????????줿̾???? ???Ѥ????ޤ???

?Ķ??ѿ? LINES ?? COLUMNS ?????ꤷ?????硢?ޤ??ϥ??????ɥ??Ķ??? ?ץ??????????¹Ԥ??Ƥ??????硢terminfo ???ɤ߹??ޤ줿?????ϡ??Ķ??ιԤ? ???????ξ????Ǿ??񤭤????ޤ????????ϡ????̤Υ????????ѹ??Ǥ??롢 AT&T 630 ?쥤???ʤɤǼ¹Ԥ??Ƥ????ץ????????˱ƶ????ޤ???

?Ķ??ѿ? TERMINFO ???????????ȡ?ncurses ?????Ѥ??Ƥ????ץ????????ϡ? ??????????ü?????????????å????Ƥ???ɸ???ξ????˥????å????󤷤ޤ??? ???Ȥ??? TERM ?? att4424 ?????ꤹ???ȡ? ?????ѥ??뤵?줿ü???????ϰʲ??ξ????Ǹ??Ĥ????ޤ???

@TERMINFO@/a/att4424 (a ?ϡ??礭?ʥǥ??쥯?ȥ??κ??????򤱤뤿???? att4424 ?? ?ǽ???ʸ???򥳥ԡ????????ΤǤ???) ?????? TERMINFO ?? $HOME/myterms ?????ꤹ???ȡ?ncurses?? ?ʲ??ξ??????ǽ??˥????å????ޤ???

$HOME/myterms/a/att4424

?????å??????Ԥ˽??????ȡ????˰ʲ????????å????ޤ???

@TERMINFO@/a/att4424

?????ϡ????????????ȯ???Ƥ??????硢?ޤ??? @TERMINFO@ ?ν????߸????ʤ? ???????????Ǥ???

?????ѿ? LINES ?? COLS ?ϡ?<ncurses.h>???????????Ƥ??ޤ??? ?????????ѿ??ˤϡ?initscr ?????̤Υ??????˽??ä??ͤ????Ϥ??ޤ??????? TRUE ?? FALSE ???ͤϡ????줾?? 1 ?? 0 ?ˤʤäƤ??ޤ???

ncurses ?롼?????ϡ?WINDOW * ?ѿ? curscr ?????????ޤ??? ?????ѿ??ϡ????ߤ??ޤ????̤Υ??ꥢ?????????ʤɡ????????????٥??????? ???Ѥ??ޤ???curscr ?ϡ??????Υ롼?????Ǥ??????Ѥ????ʤ??Ǥ??礦??

¿???? ncurses ?롼?????ˤ?ʣ???ΥС??????󤬤????ޤ??? w ?ǻϤޤ??롼?????ˤϥ??????ɥ???????ɬ?פǤ??? p ?ǻϤޤ??롼?????ˤϥѥåɰ?????ɬ?פǤ??? ??Ƭ?줬?ʤ??롼?????ϡ?????Ū?? stdscr ?????Ѥ??ޤ???

mv ?ǻϤޤ??롼?????Ǥϡ???ư???? y ??ɸ?? x ??ɸ?? ?ʤ????С?Ŭ?ڤʥ????????????¹ԤǤ??ޤ??󡣥롼?????? mv ?? ?Ϥޤ??Ȥ??????Ȥϡ?move ???ƤӽФ????Ƥ??? ?̤Υ롼???󤬸ƤӽФ??????Ȥ??????ȤǤ??? y ??ɸ?ϥ??????ɥ??ιԤ???x ??ɸ?ϥ???????????ɽ???ޤ??? ?????? (1,1) ?ǤϤʤ????? (0,0) ?Ǥ???

mvw ?ǻϤޤ??롼?????ˤϡ????????ɥ??????? x ??ɸ?? y ??ɸ??ɬ?פǤ??????????ɥ??????????ꤷ?Ƥ?????ɸ?????ꤷ?Ƥ?????????

?ɤΥ??????Ǥ⡢win ?ϱƶ????????륦?????ɥ??ǡ? pad ?ϱƶ??????????ѥåɤǤ???win ?? pad ?ϡ? ???? WINDOW ???Υݥ??󥿤Ǥ???

???ץ??????????롼?????Ǥϡ??ͤ? TRUE ?? FALSE ?ˤʤäƤ??? ?????ե饰 bf ??ɬ?פǤ??? bf ?η??Ͼ??? bool ?Ǥ??? ?ѿ? ch ?? attrs ?η??Ͼ??? chtype ?Ǥ??? ?? WINDOW, SCREEN, bool, chtype ?ϡ? <ncurses.h> ???????????Ƥ??ޤ??? TERMINAL ???ϡ?<term.h> ???????????Ƥ??ޤ??? ????¾???٤Ƥΰ??????????Ǥ???

?ʲ???ɽ?ϡ??? ncurses ?롼???󡢤????Ӥ??β??⤬?ܤäƤ??? ?ޥ˥奢???ڡ?????̾?????ޤȤ᤿???ΤǤ???

ncurses ?롼????̾  ?ޥ˥奢???ڡ???̾
___________________________________________
addch                  curs_addch(3)
addchnstr              curs_addchstr(3)
addchstr               curs_addchstr(3)
addnstr                curs_addstr(3)
addstr                 curs_addstr(3)
attroff                curs_attr(3)
attron                 curs_attr(3)
attrset                curs_attr(3)
baudrate               curs_termattrs(3)
beep                   curs_beep(3)
bkgd                   curs_bkgd(3)
bkgdset                curs_bkgd(3)
border                 curs_border(3)
box                    curs_border(3)
can_change_color       curs_color(3)
cbreak                 curs_inopts(3)
clear                  curs_clear(3)
clearok                curs_outopts(3)
clrtobot               curs_clear(3)
clrtoeol               curs_clear(3)
color_content          curs_color(3)
copywin                curs_overlay(3)
curs_set               curs_kernel(3)
def_prog_mode          curs_kernel(3)
def_shell_mode         curs_kernel(3)
del_curterm            curs_terminfo(5)
delay_output           curs_util(3)
delch                  curs_delch(3)
deleteln               curs_deleteln(3)
delscreen              curs_initscr(3)
delwin                 curs_window(3)
derwin                 curs_window(3)
doupdate               curs_refresh(3)
dupwin                 curs_window(3)
echo                   curs_inopts(3)
echochar               curs_addch(3)
endwin                 curs_initscr(3)
erase                  curs_clear(3)
erasechar              curs_termattrs(3)
filter                 curs_util(3)
flash                  curs_beep(3)
flushinp               curs_util(3)
getbegyx               curs_getyx(3)
getch                  curs_getch(3)
getmaxyx               curs_getyx(3)
getparyx               curs_getyx(3)
getstr                 curs_getstr(3)
getsyx                 curs_kernel(3)
getwin                 curs_util(3)
getyx                  curs_getyx(3)
halfdelay              curs_inopts(3)
has_colors             curs_color(3)
has_ic                 curs_termattrs(3)
has_il                 curs_termattrs(3)
hline                  curs_border(3)
idcok                  curs_outopts(3)
idlok                  curs_outopts(3)
immedok                curs_outopts(3)
inch                   curs_inch(3)
inchnstr               curs_inchstr(3)
inchstr                curs_inchstr(3)
init_color             curs_color(3)
init_pair              curs_color(3)
initscr                curs_initscr(3)
innstr                 curs_instr(3)
insch                  curs_insch(3)
insdelln               curs_deleteln(3)
insertln               curs_deleteln(3)
insnstr                curs_insstr(3)
insstr                 curs_insstr(3)
instr                  curs_instr(3)
intrflush              curs_inopts(3)
is_linetouched         curs_touch(3)
is_wintouched          curs_touch(3)
isendwin               curs_initscr(3)
keyname                curs_util(3)
keypad                 curs_inopts(3)
killchar               curs_termattrs(3)
leaveok                curs_outopts(3)
longname               curs_termattrs(3)
meta                   curs_inopts(3)
move                   curs_move(3)
mvaddch                curs_addch(3)
mvaddchnstr            curs_addchstr(3)
mvaddchstr             curs_addchstr(3)
mvaddnstr              curs_addstr(3)
mvaddstr               curs_addstr(3)
mvcur                  curs_terminfo(5)
mvdelch                curs_delch(3)
mvderwin               curs_window(3)
mvgetch                curs_getch(3)
mvgetstr               curs_getstr(3)
mvinch                 curs_inch(3)
mvinchnstr             curs_inchstr(3)
mvinchstr              curs_inchstr(3)
mvinnstr               curs_instr(3)
mvinsch                curs_insch(3)
mvinsnstr              curs_insstr(3)
mvinsstr               curs_insstr(3)
mvinstr                curs_instr(3)
mvprintw               curs_printw(3)
mvscanw                curs_scanw(3)
mvwaddch               curs_addch(3)
mvwaddchnstr           curs_addchstr(3)
mvwaddchstr            curs_addchstr(3)
mvwaddnstr             curs_addstr(3)
mvwaddstr              curs_addstr(3)
mvwdelch               curs_delch(3)
mvwgetch               curs_getch(3)
mvwgetstr              curs_getstr(3)
mvwin                  curs_window(3)
mvwinch                curs_inch(3)
mvwinchnstr            curs_inchstr(3)
mvwinchstr             curs_inchstr(3)
mvwinnstr              curs_instr(3)
mvwinsch               curs_insch(3)
mvwinsnstr             curs_insstr(3)
mvwinsstr              curs_insstr(3)
mvwinstr               curs_instr(3)
mvwprintw              curs_printw(3)
mvwscanw               curs_scanw(3)
napms                  curs_kernel(3)
newpad                 curs_pad(3)
newterm                curs_initscr(3)
newwin                 curs_window(3)
nl                     curs_outopts(3)
nocbreak               curs_inopts(3)
nodelay                curs_inopts(3)
noecho                 curs_inopts(3)
nonl                   curs_outopts(3)
noqiflush              curs_inopts(3)
noraw                  curs_inopts(3)
notimeout              curs_inopts(3)
overlay                curs_overlay(3)
overwrite              curs_overlay(3)
pair_content           curs_color(3)
pechochar              curs_pad(3)
pnoutrefresh           curs_pad(3)
prefresh               curs_pad(3)
printw                 curs_printw(3)
putp                   curs_terminfo(5)
putwin                 curs_util(3)
qiflush                curs_inopts(3)
raw                    curs_inopts(3)
redrawwin              curs_refresh(3)
refresh                curs_refresh(3)
reset_prog_mode        curs_kernel(3)
reset_shell_mode       curs_kernel(3)
resetty                curs_kernel(3)
restartterm            curs_terminfo(5)
ripoffline             curs_kernel(3)
savetty                curs_kernel(3)
scanw                  curs_scanw(3)
scr_dump               curs_scr_dmp(3)
scr_init               curs_scr_dmp(3)
scr_restore            curs_scr_dmp(3)
scr_set                curs_scr_dmp(3)
scrl                   curs_scroll(3)
scroll                 curs_scroll(3)
scrollok               curs_outopts(3)
set_curterm            curs_terminfo(5)
set_term               curs_initscr(3)
setscrreg              curs_outopts(3)
setsyx                 curs_kernel(3)
setterm                curs_terminfo(5)
setupterm              curs_terminfo(5)
slk_attroff            curs_slk(3)
slk_attron             curs_slk(3)
slk_attrset            curs_slk(3)
slk_clear              curs_slk(3)
slk_init               curs_slk(3)
slk_label              curs_slk(3)
slk_noutrefresh        curs_slk(3)
slk_refresh            curs_slk(3)
slk_restore            curs_slk(3)
slk_set                curs_slk(3)
slk_touch              curs_slk(3)
standend               curs_attr(3)
standout               curs_attr(3)
start_color            curs_color(3)
subpad                 curs_pad(3)
subwin                 curs_window(3)
syncok                 curs_window(3)
termattrs              curs_termattrs(3)
termname               curs_termattrs(3)
tigetflag              curs_terminfo(5)
tigetnum               curs_terminfo(5)
tigetstr               curs_terminfo(5)
timeout                curs_inopts(3)
touchline              curs_touch(3)
touchwin               curs_touch(3)
tparm                  curs_terminfo(5)
tputs                  curs_terminfo(5)
typeahead              curs_inopts(3)
unctrl                 curs_util(3)
ungetch                curs_getch(3)
untouchwin             curs_touch(3)
use_env                curs_util(3)
vidattr                curs_terminfo(5)
vidputs                curs_terminfo(5)
vline                  curs_border(3)
vwprintw               curs_printw(3)
vwscanw                curs_scanw(3)
waddch                 curs_addch(3)
waddchnstr             curs_addchstr(3)
waddchstr              curs_addchstr(3)
waddnstr               curs_addstr(3)
waddstr                curs_addstr(3)
wattroff               curs_attr(3)
wattron                curs_attr(3)
wattrset               curs_attr(3)
wbkgd                  curs_bkgd(3)
wbkgdset               curs_bkgd(3)
wborder                curs_border(3)
wclear                 curs_clear(3)
wclrtobot              curs_clear(3)
wclrtoeol              curs_clear(3)
wcursyncup             curs_window(3)
wdelch                 curs_delch(3)
wdeleteln              curs_deleteln(3)
wechochar              curs_addch(3)
werase                 curs_clear(3)
wgetch                 curs_getch(3)
wgetnstr               curs_getstr(3)
wgetstr                curs_getstr(3)
whline                 curs_border(3)
winch                  curs_inch(3)
winchnstr              curs_inchstr(3)
winchstr               curs_inchstr(3)
winnstr                curs_instr(3)
winsch                 curs_insch(3)
winsdelln              curs_deleteln(3)
winsertln              curs_deleteln(3)
winsnstr               curs_insstr(3)
winsstr                curs_insstr(3)
winstr                 curs_instr(3)
wmove                  curs_move(3)
wnoutrefresh           curs_refresh(3)
wprintw                curs_printw(3)
wredrawln              curs_refresh(3)
wrefresh               curs_refresh(3)
wscanw                 curs_scanw(3)
wscrl                  curs_scroll(3)
wsetscrreg             curs_outopts(3)
wstandend              curs_attr(3)
wstandout              curs_attr(3)
wsyncdown              curs_window(3)
wsyncup                curs_window(3)
wtimeout               curs_inopts(3)
wtouchln               curs_touch(3)
wvline                 curs_border(3)

?롼?????β??????õ??????Ƥ??ʤ????С????????᤹?롼?????ϡ????顼?? ȯ???????????? ERR ???ᤷ?????꤬?ʤ??????? ERR ?ʳ??? ?????ͤ??ᤷ?ޤ???

setscrreg, wsetscrreg, getyx, getbegyx, getmaxyx ?ʳ??Τ??٤ƤΥޥ????ϡ?w ?С??????????ͤ??ᤷ?ޤ??? setscrreg, wsetscrreg, getyx, getbegyx, getmaxyx ???????ͤ??????????Ƥ??ޤ?????(???ʤ????? ???????ƥ??ơ??ȥ????Ȥα?¦?Ǥϻ??Ѥ??ʤ??Ǥ?????????)

?ݥ??󥿤??᤹?롼?????ϡ????顼??ȯ???????? NULL ???ᤷ?ޤ???

?롼?????ξܺ٤ˤĤ??Ƥϡ?terminfo(5)????????̾??????curs_?פǻϤޤ? ?????????? 3 ?Υڡ????򻲾Ȥ??Ƥ?????????

?إå??ե????? <ncurses.h> ???????????ȡ??إå??ե????? <stdio.h> ?? <unctrl.h> ????ưŪ?˼??????ޤ??ޤ???

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.