[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Contents</title>
|
---|
| 3 |
|
---|
[b822811] | 4 | <para>The Ncurses package contains the ncurses, panel, menu and form
|
---|
[6370fa6] | 5 | libraries. It also contains the tic, infocmp, clear, tput, toe and tset
|
---|
[b822811] | 6 | programs.</para>
|
---|
[6370fa6] | 7 |
|
---|
| 8 | </sect2>
|
---|
| 9 |
|
---|
| 10 | <sect2><title>Description</title>
|
---|
| 11 |
|
---|
| 12 | <sect3><title>The libraries</title>
|
---|
| 13 |
|
---|
[b822811] | 14 | <para>The libraries that make up the Ncurses library are used to display text
|
---|
[7d90bd3] | 15 | (often in a fancy way) on the screen. An example where ncurses is used
|
---|
[6370fa6] | 16 | is in the kernel's <quote>make menuconfig</quote> process. The libraries
|
---|
| 17 | contain routines to create panels, menu's, form and general text display
|
---|
[b822811] | 18 | routines.</para>
|
---|
[6370fa6] | 19 |
|
---|
| 20 | </sect3>
|
---|
| 21 |
|
---|
| 22 | <sect3><title>Tic</title>
|
---|
| 23 |
|
---|
[b822811] | 24 | <para>Tic is the terminfo entry-description compiler. The program translates a
|
---|
[6370fa6] | 25 | terminfo file from source format into the binary format for use with the
|
---|
| 26 | ncurses library routines. Terminfo files contain information about the
|
---|
[b822811] | 27 | capabilities of a terminal.</para>
|
---|
[6370fa6] | 28 |
|
---|
| 29 | </sect3>
|
---|
| 30 |
|
---|
| 31 | <sect3><title>Infocmp</title>
|
---|
| 32 |
|
---|
[b822811] | 33 | <para>The infocmp program can be used to compare a binary terminfo entry with
|
---|
[6370fa6] | 34 | other
|
---|
| 35 | terminfo entries, rewrite a terminfo description to take advantage of
|
---|
| 36 | the
|
---|
| 37 | use= terminfo field, or print out a terminfo description from the
|
---|
| 38 | binary
|
---|
[b822811] | 39 | file (term) in a variety of formats (the opposite of what tic does).</para>
|
---|
[6370fa6] | 40 |
|
---|
| 41 | </sect3>
|
---|
| 42 |
|
---|
| 43 | <sect3><title>clear</title>
|
---|
| 44 |
|
---|
[b822811] | 45 | <para>The clear program clears the screen if this is possible. It looks in
|
---|
[6370fa6] | 46 | the environment for the terminal type and then in the terminfo database
|
---|
| 47 | to
|
---|
[b822811] | 48 | figure out how to clear the screen.</para>
|
---|
[6370fa6] | 49 |
|
---|
| 50 | </sect3>
|
---|
| 51 |
|
---|
| 52 | <sect3><title>tput</title>
|
---|
| 53 |
|
---|
[b822811] | 54 | <para>The tput program uses the terminfo database to make the values of
|
---|
[6370fa6] | 55 | terminal-dependent capabilities and information available to the shell,
|
---|
| 56 | to
|
---|
| 57 | initialize or reset the terminal, or return the long name of the
|
---|
| 58 | requested
|
---|
[b822811] | 59 | terminal type.</para>
|
---|
[6370fa6] | 60 |
|
---|
| 61 | </sect3>
|
---|
| 62 |
|
---|
| 63 | <sect3><title>toe</title>
|
---|
| 64 |
|
---|
[b822811] | 65 | <para>The toe program lists all available terminal types by primary name with
|
---|
| 66 | descriptions.</para>
|
---|
[6370fa6] | 67 |
|
---|
| 68 | </sect3>
|
---|
| 69 |
|
---|
| 70 | <sect3><title>tset</title>
|
---|
| 71 |
|
---|
[b822811] | 72 | <para>The Tset program initializes terminals so they can be used, but it's not
|
---|
| 73 | widely used anymore. It's provided for 4.4BSD compatibility.</para>
|
---|
[6370fa6] | 74 |
|
---|
| 75 | </sect3>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|