Skip to content

Latest commit

 

History

History
73 lines (64 loc) · 2.75 KB

cix-ncurses.org

File metadata and controls

73 lines (64 loc) · 2.75 KB

ncurses

|≣|

AuthorThomas E. Dickey,
Juergen Pfeifer,
Eric S Raymond,
Alexander V Lukyanov,
Philippe Blain,
Sven Verdoolaege
Maintainer(s)
Released1993
Sourcencurses.ftp
Man
Infoncurses.web

The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library.


Index

| CMD       | MAN  | DESCRIPTION                                               |
| captoinfo | (1m) | convert a termcap description into a terminfo description |
| clear     | (3x) | clear all or part of a curses window                      |
| clear     | (1)  | clear the terminal screen                                 |
| infocmp   | (1m) | compare or print out terminfo descriptions                |
| infotocap | (1m) | convert a terminfo description into a termcap description |
| reset     | (1)  | terminal initialization                                   |
| tabs      | (1)  | set tabs on a terminal                                    |
| tabs      | (1p) | set terminal tabs                                         |
| tic       | (1m) | the terminfo entry-description compiler                   |
| toe       | (1m) | table of (terminfo) entries                               |
| tput      | (1)  | initialize a terminal or query terminfo database          |
| tput      | (1p) | change terminal characteristics                           |
| tset      | (1)  | terminal initialization                                   |

Receipts

tput

tput::examples

show warning message if user is not root:

#!/usr/bin/env bash

[ "$(id -ur)" = 0 ] ||
    {
        tput bold; tput setaf 1
        cat << EOF
   Run as root. Exit.
EOF
        tput sgr0; exit 1
    }