Tput: Difference between revisions
From wikinotes
(Created page with "The Termcap DB is a library/db that abstracts control codes to manipulate a terminal.<br> The <code>tput</code> command can interact with it from shellscript.") |
No edit summary |
||
Line 1: | Line 1: | ||
The Termcap DB is a library/db that abstracts control codes to manipulate a terminal.<br> | The Termcap DB is a library/db that abstracts control codes to manipulate a terminal.<br> | ||
The <code>tput</code> command can interact with it from shellscript. | The <code>tput</code> command can interact with it from shellscript. | ||
= Documentation = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| <code>man tput</code> || https://man.archlinux.org/man/core/ncurses/tput.1.en | |||
|- | |||
|} | |||
</blockquote><!-- Documentation --> | |||
= Size = | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
tput lines # height of terminal in chars | |||
tput cols # width of terminal in chars | |||
</syntaxhighlight> | |||
</blockquote><!-- Size --> |
Revision as of 14:32, 17 July 2021
The Termcap DB is a library/db that abstracts control codes to manipulate a terminal.
The tput
command can interact with it from shellscript.
Documentation
man tput
https://man.archlinux.org/man/core/ncurses/tput.1.en
Size
tput lines # height of terminal in chars tput cols # width of terminal in chars