¸®´ª½º ÇÁ·Î±×·¡¸Ó¸¦ À§ÇÑ °¡À̵å
8.2.3 ´Ü¸»±â ³»¿ë »ìÆ캸±â (Look at a Terminal Description)
Á¤º¸ÀÇ ¸ðµç Á¶°¢µéÀº ´É·Â(capability)À̶ó ºÒ¸®¾î Áø´Ù. ¸ðµç ´É·Â(capability)Àº µÎ ±ÛÀÚ
ÄÚµåÀÌ°í, ¸ðµç µÎ ±ÛÀÚ ÄÚµå´Â ´É·Â(capability)À» À§ÇÑ °ª¿¡ ÀÇÇØ ´ÙÀ½°ú °°´Ù. °¡´ÉÇÑ Å¸ÀÔµé:
- ¼ýÀÚ(Numeric):¿¹¸¦ µé¾î co - Ä÷³ÀÇ ¼ö
- ³í¸®Àû ÀÚ·á ¶Ç´Â Ç÷¡±×(Boolean or Flag):¿¹¸¦ µé¾î hc
- ÇϵåÄ«ÇÇ ´Ü¸»±â(hardcopy terminal)
- ¹®ÀÚ¿(String):¿¹¸¦ µé¾î st - ÅÇ À§Ä¡ ÁöÁ¤
°¢°¢ÀÇ ´É·Â(capability)Àº ´ÜÀÏ °ª ŸÀÔ°ú ¿¬°üµÇ¾îÀÖ´Ù. (co´Â Ç×»ó ¼ýÀÚ, hc´Â
Ç×»ó Ç÷¡±× ±×¸®°í st´Â Ç×»ó ¹®ÀÚ¿) °ªµé¿¡´Â ¼¼°ÔÀÇ ´Ù¸¥ ŸÀÔÀÌ ÀÖ°í ±×°Íµé¿¡°Ô
Áú¹®ÇϱâÀ§ÇÑ ¼¼°³ÀÇ ÇÔ¼ö°¡ ÀÖ´Ù. char *nameÀº ´É·Â(capability)¸¦ À§ÇÑ µÎ ±ÛÀÚ ÄÚµåÀÌ´Ù.
- int tgetnum(char *name)
co¿Í °°Àº ¼ýÀÚ(numeric) ´É·Â(capability) °ª(value)À» ¾ò´Â´Ù. tgetnum(...)´Â
´É·ÂÀ» »ç¿ë°¡´ÉÇÏ´Ù¸é, ¼ýÀÚ°ªÀ» ¹ÝȯÇÏ°í ±×·¸Áö ¾ÊÀ¸¸é 1À» ¹ÝȯÇÑ´Ù. (Note:¹ÝȯµÇ´Â °ªÀº
À½¼ö°¡ ¾Æ´Ï´Ù.)
- int tgetflag(char *name)
³í¸®Àû(boolean) ÀÚ·á (¶Ç´Â Ç÷¡±×(flag))ÀÎ ´É·Â °ªÀ» ¾ò´Â´Ù. Ç÷¡±×°¡ Á¸ÀçÇϸé 1, ±×·¸Áö
¾ÊÀ¸¸é 0À» ¹ÝȯÇÑ´Ù.
- char *tgetstr(char *name, char **area)
¹®ÀÚ¿ÀÎ ´É·Â°ªÀ» ¾ò´Â´Ù. ¹®ÀÚ¿¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ¹ÝȯÇÏ°í Á¸ÀçÇÏÁö ¾ÊÀ¸¸é NULLÀ» ¹ÝȯÇÑ´Ù.
GNU ¹öÀü¿¡¼, ¿µ¿ªÀÌ NULLÀ̸é, termcapÀº ½º½º·Î ¸Þ¸ð¸®¸¦ ÇÒ´çÇÒ °ÍÀÌ´Ù. termcapÀº °áÄÚ
±× Æ÷ÀÎÅ͸¦ ´Ù½Ã ÂüÁ¶ÇÏÁö ¾Ê´Â´Ù. ±×·¯¹Ç·Î ÇÁ·Î±×·¥À» ¶°³ª±â Àü¿¡ nameÀ» Ç®¾îÁÖ´Â °ÍÀ»
ÀØÁö¸»¾Æ¶ó. ¿ì¸®°¡ Æ÷ÀÎÅ͸¦ À§ÇØ ¾ó¸¶³ª ¸¹Àº °ø°£ÀÌ ÇÊ¿äÇÑÁö¸¦ ¸ð¸£±â ¶§¹®¿¡, termcapÀÌ
ÀÌ·¯ÇÑ ÀÏÀ» Çϵµ·Ï ÇÏ´Â °ÍÀÌ ´õ ÁÁ´Ù.
ÀÌÀü:8.2.2 ´Ü¸»±â ³»¿ë ã±â
´ÙÀ½:8.2.4 Termcap ´É·Âµé
Copyright (c) 1996,1997 by Euibeom.Hwang & SangEun.Oh All Rights Reserved
Email To:Webmaster ,
Another address
LAST UPDATE Dec 2,1997
Created Dec 2,1997