source: trunk/minix/man/man1/tget.1@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.3 KB
Line 
1.TH TGET 1
2.SH NAME
3tget \- get termcap values
4.SH SYNOPSIS
5.B tget
6.RB [ \-flag
7.IR id ]
8.RB [ \-num
9.IR id ]
10.RB [ \-str
11.IR id ]
12.RB [ \-goto
13.IR "col line" ]
14.RB [[ \-echo ]
15.IR string ]
16.SH DESCRIPTION
17.B Tget
18allows shell scripts access to the
19.BR termcap (3)
20functions. Flags, numbers and strings can be queried from the termcap
21database under the entry denoted by the environment variable
22.BR $TERM .
23.SH OPTIONS
24.TP
25.BI \-flag " id"
26Set the exit status to zero if the flag
27.I id
28is set. All other options except
29.B \-echo
30set the exit status to
31.I id
32being available or not. The last option sets the final exit code.
33.TP
34.BI \-num " id"
35Print the value of the numeric variable
36.IR id .
37.TP
38.BI \-str " id"
39Print the value of the string variable
40.IR id .
41.TP
42.BI \-goto " col line"
43Generates instructions to go to the given column and line if the
44.B cm
45capability exists.
46.TP
47.BI \-echo " string"
48Prints
49.IR string .
50Any other argument that does not start with a dash is also printed.
51.SH EXAMPLE
52Try this:
53.B "tget -str so 'Reverse Video' -str se"
54.SH ENVIRONMENT
55.TP 15n
56.B TERM
57Terminal type.
58.TP
59.B TERMCAP
60Path to the termcap database, by default /etc/termcap:/usr/etc/termcap.
61.SH "SEE ALSO"
62.BR termcap (3).
63.SH DIAGNOSTICS
64.B Tget
65will fail immediately with a descriptive message if the termcap entry
66can't be found.
67.SH AUTHOR
68Kees J. Bot (kjb@cs.vu.nl)
Note: See TracBrowser for help on using the repository browser.