The license has been changed to the MIT-style license used by NCURSES. Note that the programs are also re-licensed under this.
curses ã«ãã端æ«å¶å¾¡ 端æ«ã¨ã¯ï¼ã³ã³ãã¥ã¼ã¿ã®åºæ¬çãªæ©è½ ï¼ãã¼ãã¼ãããå½ä»¤ãåãåãï¼ç»é¢ã«æåãæãæ©è½ï¼ ãå®ç¾ããããã®ãã¼ãã¦ã§ã¢ãã½ããã¦ã§ã¢ã®ãã¨ã§ããï¼ ã³ãã³ãã©ã¤ã³ã®å ¥åã«æ®æ®µä½¿ã£ã¦ããã¢ããªã±ã¼ã·ã§ã³ï¼ ãã¨ãã°ï¼ Linux ã®ãGNOME 端æ«ï¼gnome-terminalï¼ãã MacOSX ã®ãã¿ã¼ããã«ãçã¯ï¼ 端æ«ã½ããã¦ã§ã¢ã®ä¸ç¨®ï¼ ããã¾ã§ã®ï¼£è¨èªããã°ã©ã ã§ã¯ï¼æ¨æºã©ã¤ãã©ãªã®å ¥åºåé¢æ° printf( ) 㨠scanf( ) çãå©ç¨ãã¦ï¼ 端æ«ã®å ¥åºåãå®è¡ãã¦ããï¼ ãããï¼ãããã®é¢æ°ã§ã¯ï¼ä¸è¡åä½ã§ããå ¥åºåã§ããªããï¼ ç½é»ã§ãã表示ã§ããªãï¼çã®å¶ç´ãå¤ãã£ãï¼ ããªã¼ãã ï¼£è¨èªã§ã¯ï¼ã¾ã£ããé¢ç½å³ã®ãªãããã°ã©ã ããä½ããªãã®ãã¼ã ããï¼ããã¯èª¤è§£ã ï¼ ç«¯æ«èªèº«ã¯ï¼ãã¼ãã¼ããç»é¢ãããèªç±èªå¨ã«å¶å¾¡ããæ©è½ããã£ã¦ã
CUIã«ããã¦ï¼ã¹ã¯ãªã¼ã³ãï¼ãã¼å ¥åï¼ã«ã¼ã½ã«ãªã©ã管çããã©ã¤ãã©ãªã§ãï¼ ãã®ã©ã¤ãã©ãªãå©ç¨ãããã¨ã§ï¼CUIãã¼ã¹ã§ãã¤ã¢ãã°ãåºãããï¼ããããåºæ¥ãããã§ãï¼ ããã§ã¯ï¼èªåã§ä½¿ãã¨æã£ãé¢æ°ã®ã¿ç°¡åãªèª¬æãæ¸ãã¦ãã¾ãï¼ ãã®ãã¼ã¸ã¯ï¼BSDã®ããã¥ã¢ã«ãåèã«ï¼ç§ã解éãããã®ã§ãï¼ ééã£ã¦ããããããã¾ããã®ã§ï¼èªå·±è²¬ä»»ã§åèã«ãã¦ãã ããï¼ ãã詳ããç¥ãããå ´åã¯ï¼BSDã®ããã¥ã¢ã«ãè¦ã¦ä¸ããï¼ ããããã¡ã¤ã«ncurses.hã®ã¤ã³ã¯ã«ã¼ãã¨ã©ã¤ãã©ãªncurses.aã®ãªã³ã¯ãå¿ è¦ã§ã #include <ncurses.h> -lncurses 使ãæ¹ ä½æ initscr ããã㯠newterm è¨å® å°ãªãã¨ãcbreak ããã㯠nocbreakãå¼ã³åºãã¹ãï¼ å©ç¨ å¾å¦ç endwinã§ç«¯æ«ã®ãªã»ããã¨ã«ã¼ã½ã«ãå·¦ä¸ã«ç§»åããï¼ ã¾ãï¼å¿ è¦ã«
端æ«ä¸ã§ï¼å¯¾è©±çãªããã°ã©ã ãä½ãå ´åï¼ ãªã«ããã¼ã¿ãããã¦ããï¼ã¨ã³ã¿ã¼ãã¼ãæ¼ããªã㨠ããã°ã©ã ã«ãã¼ã¿ãä¼ããã¾ããã§ããï¼ ããã¯ã¡ãã£ã¨ãã£ãããã§ããï¼ ç¹ã«ã²ã¼ã ãªã©ï¼å¯¾è©±æ§ã®å¼·ãããã°ã©ã ã§ã¯ï¼ 1ã¤ã®ãã¼ãæ¼ãããã ããã§ä½ããèµ·ãã£ã¦ã»ãããã®ã§ãï¼ ããã¹ãã¨ãã£ã¿(emacsãã¡ã¢å¸³ç)ã ã£ã¦ï¼ æåãããã¦ããã¨ã³ã¿ã¼ãæ¼ããªãã¨ç»é¢ã«æåãåºãªãã£ãã ãã£ã¦ãããªãã§ãããï¼ (n)cursesã©ã¤ãã©ãªã¨ããã©ã¤ãã©ãªã«ç»é²ãããé¢æ°ç¾¤ã使ããã¨ã§ï¼ ã¿ã¼ããã«ä¸ã§ï¼ å²ãã¨ç°¡åã«ï¼ãã®ãã㪠ãªããããªå¯¾è©±åããã°ã©ã ãä½æãããã¨ãã§ãã¾ãï¼ ä¾1: ã«ã¼ã½ã«ä½ç½®ã®ç§»å hjklããããã¨ã§ï¼ã«ã¼ã½ã«ãä¸ä¸å·¦å³ã«ç§»åãã¾ãï¼ ç§»åã«å©ç¨ããæåãè»è·¡ã«æããã¾ãï¼ ç»é¢ä¾ ãã¦ã³ãã¼ã cursesããã°ã©ã ã®åºæ¬æ§æ ãããã¼: 以ä¸ã®ãããã¼ãå¿
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}