CURSES(3X)		UNIX ¥é¥¤¥Ö¥é¥ê	CURSES(3X)

¡ÎÌ¾Á°¡Ï
curses - ²èÌÌ´ÉÍý¥×¥í¥°¥é¥à

¡Î·Á¼°¡Ï
cc [flags] files -lnjeJ  -lcursesJ -ltermcap [libraries]

¡Îµ¡Ç½ÀâÌÀ¡Ï
ËÜ¥·¥¹¥Æ¥à¤Ç¤Ï4.3bsd¤ÇÄêµÁ¤µ¤ì¤¿libcurses¤ËÆüËÜ¸ì½èÍýµ¡Ç½¤òÄÉ²Ã¤·¤Þ¤·¤¿¡£libcurses¥é¥¤¥Ö¥é¥ê¤Î°Ê²¼¤Î´Ø¿ô¤¬ÆüËÜ¸ì²½¤µ¤ì¤Þ¤·¤¿¡£
¤Ê¤ª¡¢curses¤Î¾ÜºÙ¤Ë´Ø¤·¤Æ¤ÏUNIX Programmer's Manual CURSES(3X)¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

¡ÎÆüËÜ¸ìµ¡Ç½¡Ï
TERMCAP¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë´ð¤Å¤¤¤Æ²èÌÌ¥Æ¥­¥¹¥È¤Î½èÍý¤ò¹Ô¤¦libcurses¤ÎÆüËÜ¸ì½èÍý¤Ä¤¤¤Æ°Ê²¼¤Ë½Ò¤Ù¤Þ¤¹¡£

addch(ch)
chtype ch;

¥×¥í¥»¥¹¥³¡¼¥ÉÊ¸»úch¤ò¥¦¥£¥ó¥É¥¦¤Î¥«¡¼¥½¥ë¾å¤Î°ÌÃÖ¤Ë½ñ¤­¤Þ¤¹¡£Á´³ÑÊ¸»ú¤Î¾å¤ËÈ¾³ÑÊ¸»ú¤ò½ñ¤¤¤¿¾ì¹çÁ´³ÑÊ¸»ú¤Î±¦È¾Ê¬¤Î°ÌÃÖ¤Ë¤ÏÈ¾³Ñ¥¹¥Ú¡¼¥¹¤¬¼«Æ°Åª¤Ë¤«¤«¤ì¤Þ¤¹¡£
¥×¥í¥»¥¹¥³¡¼¥Échtype¤Ë¤Ïwchar_t·¿¤Î2¥Ð¥¤¥È¥³¡¼¥É¤Þ¤¿¤Ïunsigned char·¿¤Î1¥Ð¥¤¥È¤Î¥³¡¼¥É¤òÅ¬ÍÑ¤·¤Þ¤¹¡£

°Ê²¼¤Î2¤Ä¤Î´Ø¿ô¤âaddch()¤ÈÆ±ÍÍ¤Î³ÈÄ¥¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
waddch(win, ch)
window *win;
chtype ch;

mvaddch(y, x, ch)
int y, x;
chtype ch;

delch()
¥«¡¼¥½¥ë°ÌÃÖ¤ÎÊ¸»ú¤ò¾Ãµî¤·¤Þ¤¹¡£Á´³Ñ¡¢È¾³Ñ¤òÌä¤ï¤º1²ó¤Îdelch()¤Ç1Ê¸»úÊ¬¤¬¾Ãµî¤µ¤ì¤Þ¤¹¡£

°Ê²¼¤Î3¤Ä¤Î´Ø¿ô¤âdelch¤ÈÆ±ÍÍ¤Î³ÈÄ¥¤ò¤ª¤³¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
wdelch(win)
window *win;

mvdelch(y, x)
int y, x;

mvwdelch(win, y, x)
window *win
int y, x;

addstr(str)
unsigned char *str;
EUC¥³¡¼¥ÉÊ¸»úÎó¤ò¥«¡¼¥½¥ë¾å¤Î°ÌÃÖ¤Ë½ñ¤­¤Þ¤¹¡£
Á´³ÑÊ¸»ú¤Î¾å¤ËÈ¾³ÑÊ¸»ú¤ò½ñ¤¤¤¿¾ì¹ç¡¢Á´³ÑÊ¸»ú¤Î±¦È¾Ê¬¤Î°ÌÃÖ¤Ë¤ÏÈ¾³Ñ¥¹¥Ú¡¼¥¹¤¬¼«Æ°Åª¤Ë½ñ¤«¤ì¤Þ¤¹¡£

°Ê²¼¤Î3¤Ä¤Î´Ø¿ô¤âaddstr()¤ÈÆ±ÍÍ¤Î³ÈÄ¥¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
waddstr(win, str)
WINDOW *win;
unsigned char *str;

mvwaddstr(win, y, x, str)
WINDOW *win;
int y, x;
unsigned char *str;

mvaddstr(y, x, str)
int x, y;
unsigned char *str;

getch()
¥­¡¼¥Ü¡¼¥É¤«¤é¤ÎÆþÎÏ¤ò¥×¥í¥»¥¹¥³¡¼¥É¤È¤·¤ÆÊÖ¤·¤Þ¤¹¡£

°Ê²¼¤Î3¤Ä¤Î´Ø¿ô¤âgetch()¤ÈÆ±ÍÍ¤Î³ÈÄ¥¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£

wgetch(win)
WINDOW *win;

mvgetch(y, x)
int y, x;

mvwgetch(win, y, x)
WINDOW *win;
int y, x;

getstr(str)
unsigned char *str;
¥­¡¼¥Ü¡¼¥É¤«¤é¤ÎÆþÎÏ¤òEUCÊ¸»úÎó¤ËÊÑ´¹¤·¤Æ½ÐÎÏ¤·¤Þ¤¹¡£

°Ê²¼¤Î3¤Ä¤Î´Ø¿ô¤âÆ±ÍÍ¤Î³ÈÄ¥¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
wgetstr(win, str)
WINDOW *win;
unsigned char *str;

mvgetstr(y, x, str)
int y, x;
unsigned char *str;

mvwgetstr(win, y, x, str)
WINDOW *win;
int y, x;
unsigned char *str;

insch(ch)
chtype ch;
¥«¡¼¥½¥ë°ÌÃÖ¤Ë¥×¥í¥»¥¹¥³¡¼¥ÉÊ¸»úch¤òÁÞÆþ¤·¤Þ¤¹¡£
¤½¤Î°ÌÃÖ°Ê¹ß¤ÎÊ¸»úÎó¤Ï¸å¤í¤Ø¤º¤é¤µ¤ì¤Þ¤¹¡£¹Ô¤«¤é¤¢¤Õ¤ì¤¿Ê¸»ú¤Ï¾Ãµî¤µ¤ì¤Þ¤¹¡£¹ÔËö¤ÇÁ´³ÑÊ¸»ú¤òÉ½¼¨¤¹¤ë¥¹¥Ú¡¼¥¹¤¬¤Ê¤¤¾ì¹ç¡¢¤½¤ÎÊ¸»ú¤Ï¾Ãµî¤µ¤ì¤Þ¤¹¡£

°Ê²¼3¤Ä¤Î´Ø¿ô¤âÆ±ÍÍ¤Î³ÈÄ¥¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
winsch(win, ch)
WINDOW *win;
chtype ch;

mvwinsch(win, y, x, ch)
WINDOW *win;
int y, x;
chtype ch;

¤Þ¤¿¡¢ËÜ¥·¥¹¥Æ¥à¤Ç¤Ï°Ê²¼¤Î´Ø¿ô¤ò¿·µ¬ÄÉ²Ã¤·¤Æ¤¤¤Þ¤¹¡£

addwstr(wstr)
wchar_t *wstr;
wchar_t·¿¤Î¥×¥í¥»¥¹¥³¡¼¥ÉÊ¸»úÎówstr¤ò¥«¡¼¥½¥ë¾å¤Ë½ñ¤­¤Þ¤¹¡£
Á´³ÑÊ¸»úÎó¤Î¾å¤ËÈ¾³ÑÊ¸»ú¤ò½ñ¤¤¤¿¾ì¹ç¡¢Á´³ÑÊ¸»ú¤Î±¦È¾Ê¬¤Î°ÌÃÖ¤Ë¤ÏÈ¾³Ñ¥¹¥Ú¡¼¥¹¤¬¼«Æ°Åª¤Ë½ñ¤«¤ì¤Þ¤¹¡£

°Ê²¼¤Î3¤Ä´Ø¿ô¤âÆ±ÍÍ¤Î»ÅÍÍ¤Ç¤¹¡£
waddwstr(win, wstr)
WINDOW *win;
wchar_t *wstr;

mvwaddwstr(win, y, x, wstr)
WINDOW *win;
int y, x;
wchar_t *wstr;

mvaddwstr(y, x, wstr)
int y, x;
wchar_t *wstr;

getwstr(wstr)
wchar_t *wstr;
¥­¡¼¥Ü¡¼¥É¤«¤é¤ÎÆþÎÏ¤ò¥×¥í¥»¥¹¥³¡¼¥ÉÊ¸»úÎó¤È¤·¤Æ¼õ¤±¼è¤ê¤Þ¤¹¡£

°Ê²¼¤Î 3¤Ä¤Î´Ø¿ô¤âÆ±ÍÍ¤Î»ÅÍÍ¤Ç¤¹¡£
wgetwstr(win, wstr)
WINDOW *win;
wchar_t *wstr;               
                             
mvwgetwstr(win, y, x, wstr)      
WINDOW *win;                 
int y, x;
wchar_t *wstr;               
                              
mvgetwstr(y, x, wstr)          
int y, x;      
wchar_t *wstr; 

curch()
¥«¡¼¥½¥ë°ÌÃÖ¤ÎÊ¸»ú¤¬Á´³ÑÊ¸»ú¤Îº¸Â¦¤«±¦Â¦¡¢¤Þ¤¿¤ÏÈ¾³ÑÊ¸»ú¤«¤òÊÖ¤¹¡£
returnÃÍ:	_ZEN1		Á´³ÑÊ¸»ú¤Îº¸Â¦
			_ZEN2	 	Á´³ÑÊ¸»ú¤Îº¸Â¦
			_HANKAKAKU    	È¾³ÑÊ¸»ú
       
°Ê²¼¤Î3¤Ä¤â´Ø¿ô¤âÆ±ÍÍ¤Î»ÅÍÍ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
wcurch(win)
WINDOW *win;

mvcurch(y, x)
int y, x;

mvwcurch(win, y, x)
WINDOW *win;
int y, x;

¡Î´ØÏ¢¹àÌÜ¡Ï
curses¥é¥¤¥Ö¥é¥ê¤Ï
 /usr/lib/libcursesJ.a
¤Ç¤¹¡£
Ëô¡¢ÆüËÜ¸ìcurses¥é¥¤¥Ö¥é¥ê¤ò»ÈÍÑ¤Î»þ¤Ï
/NextDeveloper/Headers/nje/cursesJ.h
¤ò¥¤¥ó¥¯¥ë¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤¡£