|
̾¾Îterm - ¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¤Î term ¥Õ¥¡¥¤¥ë¤Î·Á¼°½ñ¼°term²òÀ⥳¥ó¥Ñ¥¤¥ëºÑ¤ß¤Î terminfo °Àµ½Ò¤Ï¥Ç¥£¥ì¥¯¥È¥ê /usr/share/misc/terminfo ¤Î²¼¤Ë¤¢¤ê¤Þ¤¹¡£ UNIX ¥·¥¹¥Æ¥à¤ÎµðÂç¤Ê¥Ç¥£¥ì¥¯¥È¥ê¤òÀþ·Áõº÷¤¹¤ë¤Î¤òÈò¤±¤ë¤¿¤á¡¢ /c/name ¤È¤¤¤¦·Á¤Î 2 ³¬ÁؤÎ̿̾µ¬Â§¤¬ÍѤ¤¤é¤ì¤Þ¤¹¡£ (¤³¤³¤Ç¡¢ name ¤ÏüËö¤Î̾Á°¤Ç¡¢ c ¤Ï name ¤ÎºÇ½é¤Îʸ»ú¤Ç¤¹¡£) ¤Ç¤¹¤«¤é¡¢ act4 ¤Ï¡¢ /usr/share/misc/terminfo/a/act4 ¤È¤¤¤¦¥Õ¥¡¥¤¥ë̾¤Ç¸«¤Ä¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ Ʊ¤¸Ã¼Ëö¤ò¼¨¤¹Æ±µÁ¤Ê̾Á°¤Ï¡¢Æ±¤¸¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¥Õ¥¡¥¤¥ë¤Ø¤ÎÊ£¿ô¤Î ¥ê¥ó¥¯¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤Î·Á¼°¤Ï¡¢Á´¤Æ¤Î¥Ï¡¼¥É¥¦¥§¥¢¤ÇƱ¤¸¤Ë¤Ê¤ë¤è¤¦¤ËÁª¤Ð¤ì¤Æ¤¤¤Þ¤¹¡£ 1 ¥Ð¥¤¥È¤¬ 8 ¥Ó¥Ã¥È°Ê¾å¤Ç¤¢¤ë¤³¤È¤Ï²¾Äꤷ¤Æ¤¤¤Þ¤¹¤¬¡¢¥Ð¥¤¥È¥ª¡¼¥À¤ä Éä¹æ³ÈÄ¥¤ÎÊý¼°¤Ë¤Ä¤¤¤Æ¤Ï²¾Äꤷ¤Æ¤¤¤Þ¤»¤ó¡£ ¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¤Î¥Õ¥¡¥¤¥ë¤Ï tic ¥×¥í¥°¥é¥à¤Ë¤è¤êÀ¸À®¤µ¤ì¡¢ setupterm ¥ë¡¼¥Á¥ó¤Ë¤è¤êÆɤ߼è¤é¤ì¤Þ¤¹¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï 6 ¤Ä¤ÎÉôʬ¤Ëʬ³ä¤µ¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ ¥Ø¥Ã¥À¡¢ üËö¤Î̾¾Î¡¢ ¥Ö¡¼¥ëÃͤΥե饰¡¢ ¿ôÃÍ¡¢ ʸ»úÎ󡢤ª¤è¤Ó ʸ»úÎó¥Æ¡¼¥Ö¥ë¤Ç¤¹¡£ ¥Ø¥Ã¥À¥»¥¯¥·¥ç¥ó¤Ï¥Õ¥¡¥¤¥ë¤ÎËÁƬ¤Ë¤¢¤ê¤Þ¤¹¡£ ¤³¤Î¥»¥¯¥·¥ç¥ó¤Ï¡¢°Ê²¼¤Ë¼¨¤¹·Á¼°¤Î short ·¿¤ÎÀ°¿ô 6 ¸Ä¤«¤é¤Ê¤ê¤Þ¤¹¡£ ¤³¤ì¤é¤ÎÀ°¿ô¤Ï (1) ¥Þ¥¸¥Ã¥¯¥Ê¥ó¥Ð (8 ¿Ê¤Ç 0432)¡¢ (2) ̾¾Î¥»¥¯¥·¥ç¥ó¤Î¥Ð¥¤¥Èñ°Ì¤Ç¤ÎÂ礤µ¡¢ (3) ¥Ö¡¼¥ëÃͤΥ»¥¯¥·¥ç¥ó¤Ë´Þ¤Þ¤ì¤ë¥Ð¥¤¥È¤Î¸Ä¿ô¡¢ (4) ¿ôÃÍ¥»¥¯¥·¥ç¥ó¤Ë´Þ¤Þ¤ì¤ë short ·¿À°¿ô¤Î¸Ä¿ô¡¢ (5) ʸ»úÎ󥻥¯¥·¥ç¥ó¤Ë´Þ¤Þ¤ì¤ë¥ª¥Õ¥»¥Ã¥È¤Î¸Ä¿ô (short ·¿À°¿ô)¡¢ (6) ʸ»úÎó¥Æ¡¼¥Ö¥ë¤Î¥Ð¥¤¥Èñ°Ì¤Ç¤ÎÂ礤µ ¤Ç¤¹¡£ short ·¿¤ÎÀ°¿ô¤Ï 2 ¸Ä¤Î 8 ¥Ó¥Ã¥È¥Ð¥¤¥È¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ºÇ½é¤Î¥Ð¥¤¥È¤ÏÃͤκDz¼°Ì 8 ¥Ó¥Ã¥È¤ò¡¢2 ÈÖÌܤΥХ¤¥È¤ÏºÇ¾å°Ì 8 ¥Ó¥Ã¥È¤ò ´Þ¤ß¤Þ¤¹¡£(¤¹¤Ê¤ï¤Á¡¢ÃÍ¤Ï 256*second+first ¤Èɽ¸½¤µ¤ì¤Þ¤¹¡£) ÃÍ -1 ¤Ï 2 ¥Ð¥¤¥È 0377, 0377 ¤Çɽ¸½¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤Î¾¤ÎÉé¤ÎÃͤϹ½Ê¸°ãÈ¿¤Ç¤¹¡£ °ìÈ̤ˡ¢¤³¤ÎÃͤϡ¢¤¢¤ë¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤¬¤½¤ÎüËö¤ËÈ÷¤ï¤Ã¤Æ¤¤¤Ê¤¤¤³¤È¤ò ¼¨¤·¤Þ¤¹¡£ ¤³¤Î·Á¼°¤Ï VAX ¤È PDP-11 ¤Î¥Ï¡¼¥É¥¦¥§¥¢¤Ë °ìÃפ¹¤ë¤â¤Î¤Ç¤¢¤ë¤³¤È¤Ë¤´Ãí°Õ²¼¤µ¤¤ (¤³¤ì¤é¤Ï¥ê¥È¥ë¥¨¥ó¥Ç¥£¥¢¥ó¥Þ¥·¥ó¤Ç¤¹)¡£¤³¤ì¤Ë°ìÃפ·¤Ê¤¤¥Ï¡¼¥É¥¦¥§¥¢¤Î ¥Þ¥·¥ó¤Ç¤Ï¡¢À°¿ô¤ò 2 ¸Ä¤Î¥Ð¥¤¥È¤È¤·¤ÆÆɤ߹þ¤ß¡¢ ¥ê¥È¥ë¥¨¥ó¥Ç¥£¥¢¥óÃͤò»»½Ð¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¼¡¤Ë¸½¤ì¤ë¤Î¤ÏüËö̾¥»¥¯¥·¥ç¥ó¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢Ã¼Ëö¤Î¤µ¤Þ¤¶¤Þ¤Ê̾Á°¤ò `|' ʸ»ú¤Ç¶èÀڤäÆÎóµó¤·¤¿¡¢ terminfo µ½Ò¤ÎºÇ½é¤Î¹Ô¤ò´Þ¤ß¤Þ¤¹¡£ ¤³¤Î¥»¥¯¥·¥ç¥ó¤Ï 1 ¸Ä¤Î ASCII NUL ʸ»ú¤Ç½ªÃ¼¤µ¤ì¤Þ¤¹¡£ ¥Ö¡¼¥ë·¿¤Î¥Õ¥é¥°¤Ï¡¢¥Õ¥é¥° 1 ¸Ä¤Ë¤Ä¤ 1 ¥Ð¥¤¥È¤òÀê¤á¤Þ¤¹¡£ ¤³¤Î¥Ð¥¤¥È¤Ï¡¢¥Õ¥é¥°¤¬Â¸ºß¤¹¤ë¤«¤·¤Ê¤¤¤«¤Ë½¾¤Ã¤Æ¡¢0 ¤« 1 ¤È¤Ê¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤Ï¥Õ¥¡¥¤¥ë <term.h> ¤Ë´Þ¤Þ¤ì¤ë¤Î¤ÈƱ¤¸½çÈÖ¤ËʤӤޤ¹¡£ ¿ôÃÍ¥»¥¯¥·¥ç¥ó¤¬¶ö¿ô¥Ð¥¤¥ÈÌܤ«¤é³«»Ï¤µ¤ì¤ë¤è¤¦¤Ë¡¢ ¥Ö¡¼¥ëÃͤΥ»¥¯¥·¥ç¥ó¤È¿ôÃÍ¥»¥¯¥·¥ç¥ó¤Î´Ö¤Ë¤Ï¡¢ ɬÍפʤé 1 ¸Ä¤Î¥Ê¥ë¥Ð¥¤¥È¤òÁÞÆþ¤·¤Þ¤¹ (¤³¤ì¤Ï PDP-11 ¤Î¥ï¡¼¥É¥¢¥É¥ì¥¹¥¢¡¼¥¥Æ¥¯¥Á¥ã¤Î̾»Ä¤Ç¤¢¤ê¡¢ ¸µ¡¹¤Ï´ñ¿ô¥Ð¥¤¥È¶³¦¾å¤Î¥ï¡¼¥É¤ò¥¢¥É¥ì¥¹¤¹¤ë¤³¤È¤ÇȯÀ¸¤¹¤ë IOT ¥È¥é¥Ã¥×¤ò Èò¤±¤ë¤¿¤á¤Ë¥Ç¥¶¥¤¥ó¤µ¤ì¤Þ¤·¤¿)¡£ ¤¹¤Ù¤Æ¤Î short ·¿À°¿ô¤Ï short ·¿¤Î¥ï¡¼¥É¶³¦¤Ë·¤¨¤ÆÇÛÃÖ¤µ¤ì¤Þ¤¹¡£ ¿ôÃÍ¥»¥¯¥·¥ç¥ó¤Ï¥Õ¥é¥°¥»¥¯¥·¥ç¥ó¤ÈƱÍͤǤ¹¡£ ³Æ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤Ï 2 ¥Ð¥¤¥È¤òÀê¤á¡¢¥ê¥È¥ë¥¨¥ó¥Ç¥£¥¢¥ó¤Î short ·¿À°¿ô¤È¤·¤Æ³ÊǼ¤µ¤ì¤Þ¤¹¡£ ¤â¤·É½¸½¤µ¤ì¤¿Ãͤ¬ -1 ¤Ê¤é¡¢¤½¤Î¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤Ï¸ºß¤·¤Ê¤¤¤â¤Î¤È ²ò¼á¤µ¤ì¤Þ¤¹¡£ ʸ»úÎ󥻥¯¥·¥ç¥ó¤â¤Þ¤¿Æ±ÍͤǤ¹¡£ ³Æ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤Ï¾åµ¤Î·Á¼°¤Ë½¾¤¤¡¢2 ¥Ð¥¤¥È¤Î short ·¿À°¿ô¤È¤·¤Æ ³ÊǼ¤µ¤ì¤Þ¤¹¡£ ÃÍ -1 ¤Ï¡¢¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤¬Â¸ºß¤·¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ ¤½¤ì°Ê³°¤Î¾ì¹ç¡¢Ãͤϡ¢Ê¸»úÎó¥Æ¡¼¥Ö¥ë¤ÎÀèƬ¤«¤é¤Î¥ª¥Õ¥»¥Ã¥È¤È¤·¤Æ ²ò¼á¤µ¤ì¤Þ¤¹¡£ ^X ¤ä \c ¤È¤¤¤Ã¤¿µË¡¤Ç¼¨¤µ¤ì¤¿Æüìʸ»ú¤Ï¡¢¤½¤ÎµË¡¤ò²ò¼á¤·¤¿·ë²Ì¤Î·Á¤Ç ³ÊǼ¤µ¤ì¡¢°õºþ²Äǽɽ¸½¤Ç¤Ï³ÊǼ¤µ¤ì¤Þ¤»¤ó¡£ ¥Ñ¥Ã¥É¾ðÊó $<nn> ¤È¥Ñ¥é¥á¡¼¥¿¾ðÊó %x ¤Ï²ò¼á¤ò¹Ô¤Ê¤ï¤º¤½¤Î¤Þ¤Þ¤Î·Á¤Ç ³ÊǼ¤µ¤ì¤Þ¤¹¡£ ºÇ¸å¤Î¥»¥¯¥·¥ç¥ó¤Ïʸ»úÎó¥Æ¡¼¥Ö¥ë¤Ç¤¹¡£¤³¤ì¤Ïʸ»úÎ󥻥¯¥·¥ç¥ó¤Ç»²¾È¤µ¤ì¤Æ¤¤¤ë ¤¹¤Ù¤Æ¤Îʸ»úÎ󥱡¼¥Ñ¥Ó¥ê¥Æ¥£¤ÎÃͤò´Þ¤ß¤Þ¤¹¡£ ³Æʸ»úÎó¤Ï¥Ê¥ë¤Ç½ªÃ¼¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ setupterm ¥ë¡¼¥Á¥ó¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤Ë¼ÂºÝ¤Ë¸ºß¤¹¤ë¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£ ¤È¤Ï°Û¤Ê¤ë¤â¤Î¤¬Í½ÁÛ¤µ¤ìÆÀ¤ë¤³¤È¤Ë¤´Ãí°Õ²¼¤µ¤¤¡£ setupterm ¤¬ºÆ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¸å¤Ë¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬¹¹¿·¤µ¤ì¤ë (¥Õ¥¡¥¤¥ë¤Ë¤¤¤¯¤Ä¤«¤Î̤ÃΤΥ¨¥ó¥È¥ê¤¬´Þ¤Þ¤ì¤ë·ë²Ì¤Ë¤Ê¤ê¤Þ¤¹)¤«¡¢ ¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬ºÇ¸å¤Ë¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¸å¤Ë¥×¥í¥°¥é¥à¤¬ºÆ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤ë (¸ºß¤·¤Ê¤¤¥¨¥ó¥È¥ê¤òÀ¸¤à·ë²Ì¤Ë¤Ê¤ê¤Þ¤¹)ξÊý¤Î²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£ ¥ë¡¼¥Á¥ó setupterm ¤ÏξÊý¤Î²ÄǽÀ¤ËÈ÷¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹ - ¤³¤ì¤¬¡¢¥Ç¡¼¥¿Æâ¤Ë¸Ä¿ô¤ÈÂ礤µ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ëÍýͳ¤Ç¤¹¡£ ¤Þ¤¿¡¢¿·¤·¤¤¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤Ï¾ï¤Ë¡¢¥Ö¡¼¥ëÃÍ¡¢¿ôÃÍ¡¢Ê¸»úÎó¤Î ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¥ê¥¹¥È¤Î¤½¤ì¤¾¤ì¤ÎºÇ¸å¤ËÄɲ䷤ʤ±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¿ôÃͤ˥ê¥È¥ë¥¨¥ó¥Ç¥£¥¢¥ó¤ò»ÈÍѤ·¤Æ¾¤Ë¤Ï¼«¤éµ½Ò¤·¤¿½ñ¼°¤ò»ÈÍѤ·¤Æ¤â¡¢ ¾¦ÍÑ UNIX ¥Ð¡¼¥¸¥ç¥ó¤È¤Î¥Ð¥¤¥Ê¥ê terminfo ¥¨¥ó¥È¥ê¤Î¸ß´¹À¤ò ¿®ÍѤ¹¤ë¤³¤È¤Ï¸¤¯¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ÌäÂê¤Ï¡¢¾¯¤Ê¤¯¤È¤â 3 ¼ï¤Î terminfo (HP-UX AIX, OSF/1) ¤¬ SVr1 ¸å¤Ë System V ¤¬¤éʬ´ô¤·¡¢ System V ¤È XSI ¤Î Curses ³ÈÄ¥¤È (¥Ð¥¤¥Ê¥ê½ñ¼°¤Ë¤ª¤¤¤Æ) ¾×Æͤ¹¤ë ³ÈÄ¥¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤òʸ»úÎó¥Æ¡¼¥Ö¥ë¤ËÄɲä·¤¿¤³¤È¤Ç¤¹¡£ terminfo ¥½¡¼¥¹¤Î¸ß´¹À¤Ë´Ø¤¹¤ë¾ÜºÙ¤ÊµÄÏÀ¤Ï¡¢ terminfo(5) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ Îã¤È¤·¤Æ¡¢Lear-Siegler ADM-3 ¤Îµ½Ò¤Î 16 ¿Ê¿ô¥À¥ó¥×¤ò¼¨¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¥Ý¥Ô¥å¥é¡¼¤Ç¤¹¤¬¡¢Çϼ¯¤Ê½é´ü¤ÎüËö¤Ç¤¹: adm3a|lsi adm3a, am, cols#80, lines#24, bel=^G, clear= 32$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, home=^^, ind=^J, 0000 1a 01 10 00 02 00 03 00 82 00 31 00 61 64 6d 33 ........ ..1.adm3 0010 61 7c 6c 73 69 20 61 64 6d 33 61 00 00 01 50 00 a|lsi ad m3a...P. 0020 ff ff 18 00 ff ff 00 00 02 00 ff ff ff ff 04 00 ........ ........ 0030 ff ff ff ff ff ff ff ff 0a 00 25 00 27 00 ff ff ........ ..%.'... 0040 29 00 ff ff ff ff 2b 00 ff ff 2d 00 ff ff ff ff ).....+. ..-..... 0050 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 0060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 0070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 0080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 0090 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 00a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 00b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 00c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 00d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 00e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 00f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 0100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 0110 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........ 0120 ff ff ff ff ff ff 2f 00 07 00 0d 00 1a 24 3c 31 ....../. .....$<1 0130 3e 00 1b 3d 25 70 31 25 7b 33 32 7d 25 2b 25 63 >..=%p1% {32}%+%c 0140 25 70 32 25 7b 33 32 7d 25 2b 25 63 00 0a 00 1e %p2%{32} %+%c.... 0150 00 08 00 0c 00 0b 00 0a 00 ........ . ¤¤¤¯¤Ä¤«¤ÎÀ©¸Â: ¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¤Î¥¨¥ó¥È¥ê¤Ï 4096 ¥Ð¥¤¥È¤òĶ¤¨¤ë¤³¤È¤¬ ¤Ç¤¤Þ¤»¤ó¡£Ì¾Á°¥Õ¥£¡¼¥ë¥É¤Ï 128 ¥Ð¥¤¥È¤òĶ¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡£ ´ØÏ¢¥Õ¥¡¥¤¥ë/usr/share/misc/terminfo/*/* ¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¤ÎüËö¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¥Ç¡¼¥¿¥Ù¡¼¥¹´ØÏ¢¹àÌÜcurses(3X), terminfo(5). Visit the GSP FreeBSD Man Page Interface. |