218c6b4b9b
which has some variation of writing in Japanese, as well as some typos. Submitted by: kano@na.rim.or.jp Approved by: kuriyama (mentor/implicitly)
268 lines
6.8 KiB
Groff
268 lines
6.8 KiB
Groff
.\" Copyright (c) 1980, 1991, 1993
|
||
.\" The Regents of the University of California. All rights reserved.
|
||
.\"
|
||
.\" Redistribution and use in source and binary forms, with or without
|
||
.\" modification, are permitted provided that the following conditions
|
||
.\" are met:
|
||
.\" 1. Redistributions of source code must retain the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer.
|
||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer in the
|
||
.\" documentation and/or other materials provided with the distribution.
|
||
.\" 3. All advertising materials mentioning features or use of this software
|
||
.\" must display the following acknowledgement:
|
||
.\" This product includes software developed by the University of
|
||
.\" California, Berkeley and its contributors.
|
||
.\" 4. Neither the name of the University nor the names of its contributors
|
||
.\" may be used to endorse or promote products derived from this software
|
||
.\" without specific prior written permission.
|
||
.\"
|
||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
.\" SUCH DAMAGE.
|
||
.\"
|
||
.\" @(#)termcap.3 8.2 (Berkeley) 12/11/93
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.Dd December 11, 1993
|
||
.Dt TERMCAP 3
|
||
.Os BSD 4
|
||
.Sh ̾¾Î
|
||
.Nm tgetent ,
|
||
.Nm tgetnum ,
|
||
.Nm tgetflag ,
|
||
.Nm tgetstr ,
|
||
.Nm tgoto ,
|
||
.Nm tputs ,
|
||
.Nm tparm ,
|
||
.Nm __set_ospeed
|
||
.Nd ¥¿¡¼¥ß¥Ê¥ë¤È¤ÏÆÈΩ¤·¤¿Áàºî´Ø¿ô
|
||
.Sh ½ñ¼°
|
||
.Fd #include <termcap.h>
|
||
.Vt char PC;
|
||
.Vt char *BC;
|
||
.Vt char *UP;
|
||
.Vt short ospeed;
|
||
.Ft int
|
||
.Fn tgetent "char *bp" "const char *name"
|
||
.Ft int
|
||
.Fn tgetnum "const char *id"
|
||
.Ft int
|
||
.Fn tgetflag "const char *id"
|
||
.Ft char *
|
||
.Fn tgetstr "const char *id" "char **area"
|
||
.Ft char *
|
||
.Fn tgoto "const char *cm" "int destcol" "int destline"
|
||
.Ft int
|
||
.Fn tputs "const char *cp" "int affcnt" "int (*outc)(int)"
|
||
.Ft char *
|
||
.Fn tparm "const char *cp" "..."
|
||
.Ft void
|
||
.Fn __set_ospeed "unsigned int speed"
|
||
.Sh ²òÀâ
|
||
¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Ã¼Ëöµ¡Ç½¥Ç¡¼¥¿¥Ù¡¼¥¹¡¢ÉáÄ̤Ï
|
||
.Pa /usr/share/misc/termcap
|
||
¤«¤éµ¡Ç½¤òÃê½Ð¤·¤Æ»ÈÍѤ·¡¢¤½¤Î·Á¼°¤Ï
|
||
.Xr termcap 5
|
||
¤ËÀâÌÀ¤·¤Æ¤¢¤ê¤Þ¤¹¡£
|
||
¤³¤ì¤é¤ÏÄã¥ì¥Ù¥ë¤Î¥ë¡¼¥Á¥ó¤Ç¤¹¡£¤è¤ê¹â¥ì¥Ù¥ë¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ä¤¤¤Æ¤Ï¡¢
|
||
.Xr curses 3
|
||
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
||
.Pp
|
||
.Fn tgetent
|
||
´Ø¿ô¤Ï¡¢Ã¼Ëö̾¤ÎÆþÎϤò
|
||
.Fa bp
|
||
¤Î¥Ð¥Ã¥Õ¥¡¤ËÃê½Ð¤·¤Þ¤¹¡£°ú¿ô
|
||
.Fa bp
|
||
¤Ï¥µ¥¤¥º 1024 ¤Î¥¥ã¥é¥¯¥¿¥Ð¥Ã¥Õ¥¡¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢¤Þ¤¿¤½¤ì¤Ë³¤¤¤Æ´Ø¿ô
|
||
.Fn tgetnum ,
|
||
.Fn tgetflag ,
|
||
.Fn tgetstr
|
||
¤Ê¤É¤Î¸Æ¤Ó½Ð¤·¤¬¹Ô¤ï¤ì¤Æ¤âÊÝ»ý¤µ¤ì¤Þ¤¹¡£
|
||
.Fn tgetent
|
||
´Ø¿ô¤Ï¡¢¥Ç¡¼¥¿¥Ù¡¼¥¹¥Õ¥¡¥¤¥ë
|
||
.Nm termcap
|
||
¤¬¤É¤ì¤â³«¤±¤Ê¤¤¾ì¹ç¤Ï \-1 ¤òÊÖ¤·¡¢
|
||
Í¿¤¨¤¿Ã¼Ëö̾¤¬ÆþÎϤµ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï 0 ¤òÊÖ¤·¡¢¤¹¤Ù¤Æ¤¬¤¦¤Þ¤¯
|
||
½èÍý¤µ¤ì¤¿¾ì¹ç¤Ï 1 ¤òÊÖ¤·¤Þ¤¹¡£¤³¤Î´Ø¿ô¤Ï´Ä¶¤ÎÃæ¤Ç
|
||
.Ev TERMCAP
|
||
ÊÑ¿ô¤òõ¤·¤Þ¤¹¡£¤½¤ì¤¬¸«¤Ä¤«¤ê¡¢¤½¤ÎÃͤ¬¥¹¥é¥Ã¥·¥å¤Ç»Ï¤Þ¤Ã¤Æ¤ª¤é¤º¡¢
|
||
¤Þ¤¿Ã¼Ëö¥¿¥¤¥×
|
||
.Fa name
|
||
¤¬´Ä¶¥¹¥È¥ê¥ó¥°
|
||
.Ev TERM
|
||
¤ÈƱ¤¸¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢
|
||
.Nm termcap
|
||
¥Õ¥¡¥¤¥ë¤òÆɤޤº¤Ë
|
||
.Ev TERMCAP
|
||
¥¹¥È¥ê¥ó¥°¤ò»ÈÍѤ·¤Þ¤¹¡£¥¹¥é¥Ã¥·¥å¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¸¡º÷¤¹¤ë
|
||
.Nm termcap
|
||
¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹Ì¾¤È¤·¤Æ¤½¤Î¥¹¥È¥ê¥ó¥°¤ò»È¤¤¤Þ¤¹¡£
|
||
.Ev TERMCAP
|
||
¤¬¥¹¥é¥Ã¥·¥å¤Ç»Ï¤Þ¤Ã¤Æ¤ª¤é¤¹¡¢¤«¤Ä
|
||
.Fa name
|
||
¤¬
|
||
.Ev TERM
|
||
¤È°Û¤Ê¤ë¾ì¹ç¤Ï¡¢´Ä¶ÊÑ¿ô
|
||
.Ev TERMPATH
|
||
¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð
|
||
.Fn tgetent
|
||
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë
|
||
.Pa $HOME/.termcap
|
||
¤ª¤è¤Ó
|
||
.Pa /usr/share/misc/termcap
|
||
¤ò¤³¤Î½çÈÖ¤Çõ¤·¤Þ¤¹¡£
|
||
.Ev TERMPATH
|
||
¤¬Â¸ºß¤¹¤ì¤Ð¡¢
|
||
¤½¤ì¤¬¸¡º÷¤¹¤ë¥Õ¥¡¥¤¥ë¤Î¡Ê¶õÇò¤Þ¤¿¤Ï¥³¥í¥ó¤Ç¶èÀÚ¤é¤ì¤¿¡Ë¥Ñ¥¹Ì¾¥ê¥¹¥È¤ò
|
||
»ØÄꤷ¤Þ¤¹¡£Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤òõ¤¹¾ì¹ç¤ÇÍ׵ᤵ¤ì¤¿¥¨¥ó¥È¥ê¤Ë
|
||
.Sy tc
|
||
¥Õ¥£¡¼¥ë¥É¤¬¤¢¤ë¾ì¹ç¤Ï¡¢
|
||
¤½¤ì¤¬»Ø̾¤¹¤ë¥¨¥ó¥È¥ê¤òƱ¤¸¥Õ¥¡¥¤¥ë¤Þ¤¿¤Ï¤½¤ì¤Ë³¤¯¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë
|
||
õ¤µ¤Í¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ë¤è¤Ã¤Æ¡¢
|
||
.Fn tgetent
|
||
´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¥×¥í¥°¥é¥à¤Ø¤Î
|
||
ÆþÎϤΥ¹¥Ô¡¼¥É¤ò¾å¤²¤ë¤³¤È¤¬¤Ç¤¤ë¤È¤È¤â¤Ë¡¢¿·¤·¤¤Ã¼Ëöµ½Ò¤Î¥Ç¥Ð¥Ã¥°¤ä
|
||
.Pa /usr/share/misc/termcap
|
||
¥Õ¥¡¥¤¥ë¤ò½ñ¤±¤Ê¤¤¾ì¹ç¤Ë¼«Ê¬¤ÎüËö¤ÎüËöÀâÌÀ¤ò
|
||
ºî¤ë¤³¤È¤¬´Êñ¤Ë¤Ê¤ê¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn tgetnum
|
||
´Ø¿ô¤Ï¡¢µ¡Ç½
|
||
.Fa id
|
||
¤Î¿ôÃͤò¼è¤êÆþ¤ì¤Æ¡¢¤½¤ì¤¬Ã¼Ëö¤ËÂФ·¤Æ
|
||
Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï \-1 ¤òÊÖ¤·¤Þ¤¹¡£
|
||
.Fn tgetflag
|
||
´Ø¿ô¤Ï¡¢»ØÄꤵ¤ì¤¿µ¡Ç½¤¬Ã¼Ëö¤Î¥¨¥ó¥È¥ê¤Ë¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï 1 ¤òÊÖ¤·¡¢
|
||
¸ºß¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£
|
||
.Fn tgetstr
|
||
´Ø¿ô¤Ï¡¢µ¡Ç½
|
||
.Fa id
|
||
¤Î¥¹¥È¥ê¥ó¥°ÃͤòÊÖ¤·¡¢¤½¤ì¤ò
|
||
.Fa area
|
||
¤Î¥Ð¥Ã¥Õ¥¡¤ËÆþ¤ì¡¢
|
||
.Fa area
|
||
¥Ý¥¤¥ó¥¿¤ò¿Ê¤á¤Þ¤¹¡£¤³¤Î´Ø¿ô¤Ï¡¢¥«¡¼¥½¥ë¤Î¥¢¥É¥ì¥¹
|
||
¤ª¤è¤Ó¥Ñ¥Ã¥Ç¥£¥ó¥°¾ðÊó¤ò½ü¤¤¤Æ¡¢
|
||
.Xr termcap 5
|
||
¤Ëµ½Ò¤µ¤ì¤¿¤³¤Î¥Õ¥£¡¼¥ë¥É¤Î
|
||
ά¾Î¤ò¥Ç¥³¡¼¥É¤·¤Þ¤¹¡£
|
||
.Fn tgetstr
|
||
´Ø¿ô¤Ï¡¢¤½¤Îµ¡Ç½¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï
|
||
.Dv NULL
|
||
¤òÊÖ¤·¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn tgoto
|
||
´Ø¿ô¤Ï¡¢
|
||
.Fa destline
|
||
¹Ô¤Î
|
||
.Fa cm
|
||
¤«¤é go to ¥«¥é¥à¤Þ¤Ç¤Ç¥Ç¥³¡¼¥É¤µ¤ì¤¿¥«¡¼¥½¥ë¥¢¥É¥ì¥¹¥¹¥È¥ê¥ó¥°¤òÊÖ¤·¤Þ¤¹¡£
|
||
¤³¤Î´Ø¿ô¤Ï¡¢ÊÖ¤¹¥¹¥È¥ê¥ó¥°¤Ë
|
||
.Sy \en ,
|
||
.Sy ^D
|
||
¤Þ¤¿¤Ï
|
||
.Sy ^@
|
||
¤òÆþ¤ì¤ë¤³¤È¤òÈò¤±¤ë¤¿¤á¤ËɬÍפʾì¹ç¤Ë¤Ï³°ÉôÊÑ¿ô
|
||
.Va UP
|
||
(
|
||
.Sy up
|
||
µ¡Ç½¤«¤é ) ¤ª¤è¤Ó
|
||
.Va BC
|
||
(
|
||
.Sy bs
|
||
¤Ç¤Ï¤Ê¤¯
|
||
.Sy bc
|
||
¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç ) ¤ò»È¤¤¤Þ¤¹¡£(
|
||
.Fn tgoto
|
||
´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¥×¥í¥°¥é¥à¤Ï¡¢
|
||
.Fn tgoto
|
||
´Ø¿ô¤¬¥¿¥Ö¤ò½ÐÎϤ¹¤ë²ÄǽÀ¤¬¤¢¤ë¤Î¤Ç¡¢É¬¤º
|
||
.Dv XTABS
|
||
¥Ó¥Ã¥È¤ò¥ª¥Õ¤Ë¤·¤Æ¤ª¤«¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
||
¤¤¤º¤ì¤Ë¤»¤è¡¢termcap ¤ò»È¤Ã¤Æ¤¤¤ë¥×¥í¥°¥é¥à¤Ï¡¢
|
||
üËö¤Ë¤è¤Ã¤Æ¤Ï control-I ¤ò¾¤Îµ¡Ç½¡¢
|
||
Î㤨¤ÐÇ˲õÉÔǽ¥¹¥Ú¡¼¥¹¤Ë»È¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢°ìÈ̤Ë
|
||
.Dv XTABS
|
||
¤ò¥ª¥Õ¤Ë¤¹¤ë
|
||
ɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ ) ¡£ Íý²ò¤Ç¤¤Ê¤¤
|
||
.Sy %
|
||
¥·¡¼¥±¥ó¥¹¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
|
||
.Fn tgoto
|
||
´Ø¿ô¤Ï
|
||
.Pq Dv OOPS
|
||
¤òÊÖ¤·¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn tputs
|
||
´Ø¿ô¤Ï¡¢
|
||
.Fa cp
|
||
¥¹¥È¥ê¥ó¥°¤ÎÀèƬ¤Î¥Ñ¥Ã¥Ç¥£¥ó¥°¾ðÊó¤ò¥Ç¥³¡¼¥É¤·¤Þ¤¹¡£
|
||
.Fa affcnt
|
||
¤Ï¡¢¤³¤ÎÁàºî¤Ë¤è¤Ã¤Æ±Æ¶Á¤ò¼õ¤±¤ë¹Ô¿ô¤òÍ¿¤¨¡¢¤³¤ì¤Ë³ºÅö¤·¤Ê¤¤
|
||
¾ì¹ç¤Ï¹Ô¿ô¤Ï 1 ¤È¤Ê¤ê¡¢
|
||
.Fa outc
|
||
¤Ï³Æ¥¥ã¥é¥¯¥¿¤È¤È¤â¤Ë½ç¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¥ë¡¼¥Á¥ó¤Ç¤¹¡£³°ÉôÊÑ¿ô
|
||
.Va PC
|
||
¤Ë¤Ï¡¢¥Ñ¥Ã¥É¥¥ã¥é¥¯¥¿¤¬ null
|
||
.Pq Sy ^@
|
||
¤Ç¤ÏÉÔŬÅö¤Ê¾ì¹ç¤Ë¤Ï¡¢(
|
||
.Sy pc
|
||
µ¡Ç½¤«¤é ) »ÈÍѤ¹¤Ù¤¥Ñ¥Ã¥É¥¥ã¥é¥¯¥¿¤¬
|
||
Æþ¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
||
³°ÉôÊÑ¿ô
|
||
.Va ospeed
|
||
¤Ë¤Ï¡¢
|
||
.Xr stty 3
|
||
¤Ë¤è¤ê¥¨¥ó¥³¡¼¥É¤µ¤ì¤¿Ã¼Ëö¤Î½ÐÎÏ®ÅÙ¤¬
|
||
Æþ¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
||
.Fn __set_ospeed
|
||
´Ø¿ô¤Ï¡¢cps ¤Çɽ¤·¤¿Â®ÅÙ
|
||
.Fa speed
|
||
¤ò¤â¤Ã¤È¤â¶á¤¤
|
||
.Xr stty 3
|
||
¥³¡¼¥É²½¤µ¤ì¤¿Â®ÅÙ¤ËÊÑ´¹¤·¡¢¤½¤Î·ë²Ì¤ò
|
||
.Va ospeed
|
||
¤ËÊݸ¤·¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn tparm
|
||
´Ø¿ô¤Ï¡¢¥¹¥È¥ê¥ó¥°
|
||
.Fa cp
|
||
¤òÍ¿¤¨¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Ë¤è¤Ã¤Æ¥¤¥ó¥¹¥¿¥ó¥¹¤ËÊÑ´¹¤·¤Þ¤¹¡£
|
||
.Fa cp
|
||
¤Ë¤½¤Î¥Ñ¥é¥á¡¼¥¿¤¬Å¬ÍѤµ¤ì¤¿·ë²Ì¤ò»Ø¤¹¥Ý¥¤¥ó¥¿
|
||
¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£Íý²ò¤Ç¤¤Ê¤¤
|
||
.Sy %
|
||
¥·¡¼¥±¥ó¥¹¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢
|
||
.Fn tparm
|
||
´Ø¿ô¤Ï
|
||
.Pq Dv OOPS
|
||
¤òÊÖ¤·¤Þ¤¹¡£
|
||
.Sh ¥Õ¥¡¥¤¥ë
|
||
.Bl -tag -width /usr/share/misc/termcap -compact
|
||
.It /usr/lib/libtermcap.a
|
||
.Fl l Ar ltermcap
|
||
¥é¥¤¥Ö¥é¥ê (
|
||
.Fl l Ar ltermlib
|
||
¤È¤â¸Æ¤Ð¤ì¤Þ¤¹ )
|
||
.It /usr/share/misc/termcap
|
||
ɸ½àüËöµ¡Ç½¥Ç¡¼¥¿¥Ù¡¼¥¹
|
||
.It $HOME/.termcap
|
||
¥æ¡¼¥¶¤ÎüËöµ¡Ç½¥Ç¡¼¥¿¥Ù¡¼¥¹
|
||
.El
|
||
.Sh »²¾È
|
||
.Xr ex 1 ,
|
||
.Xr curses 3 ,
|
||
.Xr termcap 5
|
||
.Sh Îò»Ë
|
||
.Fn tgetent
|
||
´Ø¿ô¤Ï¡¢
|
||
.Bx 4.0
|
||
¤Ë¸½¤ì¤Þ¤·¤¿¡£
|