130 lines
2.4 KiB
HTML
130 lines
2.4 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>tget(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>tget(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
tget - get termcap values
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>tget</STRONG> [<STRONG>-flag</STRONG> <EM>id</EM>] [<STRONG>-num</STRONG> <EM>id</EM>] [<STRONG>-str</STRONG> <EM>id</EM>] [<STRONG>-goto</STRONG> <EM>col</EM> <EM>line</EM>] [[<STRONG>-echo</STRONG>] <EM>string</EM>]
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
<STRONG>Tget</STRONG> allows shell scripts access to the <STRONG><A HREF="../man3/termcap.3.html">termcap(3)</A></STRONG> functions. Flags,
|
|
numbers and strings can be queried from the termcap database under the
|
|
entry denoted by the environment variable <STRONG>$TERM</STRONG>.
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-flag</STRONG> <EM>id</EM>
|
|
Set the exit status to zero if the flag <EM>id</EM> is set. All other
|
|
options except <STRONG>-echo</STRONG> set the exit status to <EM>id</EM> being available or
|
|
not. The last option sets the final exit code.
|
|
|
|
<STRONG>-num</STRONG> <EM>id</EM>
|
|
Print the value of the numeric variable <EM>id</EM>.
|
|
|
|
<STRONG>-str</STRONG> <EM>id</EM>
|
|
Print the value of the string variable <EM>id</EM>.
|
|
|
|
<STRONG>-goto</STRONG> <EM>col</EM> <EM>line</EM>
|
|
Generates instructions to go to the given column and line if the <STRONG>cm</STRONG>
|
|
capability exists.
|
|
|
|
<STRONG>-echo</STRONG> <EM>string</EM>
|
|
Prints <EM>string</EM>. Any other argument that does not start with a dash
|
|
is also printed.
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLE</H2><PRE>
|
|
Try this: <STRONG>tget</STRONG> <STRONG>-str</STRONG> <STRONG>so</STRONG> <STRONG>'Reverse</STRONG> <STRONG>Video'</STRONG> <STRONG>-str</STRONG> <STRONG>se</STRONG>
|
|
|
|
|
|
</PRE>
|
|
<H2>ENVIRONMENT</H2><PRE>
|
|
|
|
<STRONG>TERM</STRONG> Terminal type.
|
|
|
|
<STRONG>TERMCAP</STRONG> Path to the termcap database, by default
|
|
/etc/termcap:/usr/etc/termcap.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man3/termcap.3.html">termcap(3)</A></STRONG>.
|
|
|
|
|
|
</PRE>
|
|
<H2>DIAGNOSTICS</H2><PRE>
|
|
<STRONG>Tget</STRONG> will fail immediately with a descriptive message if the termcap
|
|
entry can't be found.
|
|
|
|
|
|
|
|
</PRE>
|
|
<H2>AUTHOR</H2><PRE>
|
|
Kees J. Bot (kjb@cs.vu.nl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|