tput(1) tput(1) (NAME) tput - terminfo (SYNOPSIS) tput [-v] [-T terminal-type] {cap-code [parameter ...]} ... tput [-v] [-T terminal-type] [-x] clear tput [-v] [-T terminal-type] init tput [-v] [-T terminal-type] reset tput [-v] [-T terminal-type] longname tput [-v] -S tput [-v] -V (DESCRIPTION) tput terminfo ( ) . cap-code . terminfo(5) cap-code . user_caps(5) . . (Boolean) tput cap-code 0 1 . (numeric) tput cap-code (-1 ). (string) tput cap-code . tput 0 " (EXIT STATUS)" . (Operands) cap-code ( ) . tput : init reset longname. " (pseudo-capabilities)" . cap-code . cap-code tput cap-code () . . tput . tput tparm(3X) . tput . init . : (1) tput . o o o o /dev/tty . tput . (2) tput . (3) tput . o (Tab expansion) o ( ) . (4) "Tabs and Initialization" terminfo(5) tput . (5) tput (flush) . . reset ( ) . : (1) tput " (sane)" : o ("cooked") (echo) o cbreak (raw) o o . (2) tput . tput . "Tabs and Initialization" terminfo(5) . longname terminfo . "|" . X/Open Curses " (long name)" (blanks) . tic terminfo . (description) . tput . terminfo(5) . : "tput init" "tput reset" . ioctl(2) . (Aliases) tput clear init reset () . reset tput "tput reset". ncurses 5.2 . . clear . init . reset tset(1) ( reset) . (Terminal Size) ( init) tput cap-code lines cols : setupterm(3X) . o tput . . o "NAWS" ( ) . o LINES COLUMNS (override) . -T tput use_tioctl(TRUE) ( ) . (OPTIONS) -S tput . tput ( " (EXAMPLES)" ). cap-code . -S 0 1 ( " (EXIT STATUS)" ). . tput tparm(3X) . -T type (type) . TERM . LINES COLUMNS . -v tput (verbose) . -V ncurses tput . -x "tput clear" (scrollback buffer) . (EXIT STATUS) tput : -S ------------------------------------------------------------------------ 0 1 2 3 4 >4 (4 + errno) -S : -S ------------------------------------------------------------------------ 0 1 4 (ENVIRONMENT) tput -T . COLUMNS . LINES . TERM . . (FILES) /usr/share/tabset (tab stop) /usr/share/terminfo (PORTABILITY) tput ncurses System V . o "tput cap-code" . . init reset tput System V 4.1cBSD tset . ( /dev/tty) ncurses (baud) . . ncurses 6.1 ( " (HISTORY)" ) tput . System V tset ( 4.4BSD tset) . ( cron(1) ) tput . o tput System V cap-code cap-code . cap-code tparm(3X) . tput . tput ncurses cap-code cap-code . System V . OpenBSD ncurses tput termcap NetBSD terminfo cap-code ( ) . ncurses OpenBSD . tput ncurses termcap termcap terminfo cap-code . termcap terminfo ncurses terminfo . o cap-code dl termcap delete_line terminfo parm_delete_line. termcap DL parm_delete_line . terminfo dl1 delete_line . o cap-code ed termcap exit_delete_mode terminfo clr_eos. termcap cd clr_eos . terminfo rmdc exit_delete_mode . longname -S cup SVr4 ( ) curses AT&T/USL . 4.3BSD-Reno ( ) longname NetBSD . IEEE Std 1003.1/The Open Group Base Specifications Issue 7 (POSIX.1-2008) clear init reset . . o ncurses clear cap-code . (init longname) . o tput SVr4 (Solaris) IRIX64 HP-UX AIX Tru64 cap-code . o FreeBSD tput terminfo termcap . tput NetBSD terminfo . ( FreeBSD) termcap . FreeBSD tput ncurses terminfo ( ) termcap ( ) . () (certified) . o X/Open Curses Issue 7 tput cap-code . o tput : (POSIX ) X/Open Curses ( ). X/Open Curses . o tput curses curses tput cap-code . X/Open Curses Issue 7 ( ) . X/Open Curses ( curses System V) . o " (invalid operand)" " (unknown capability)" . xcurses "invalid" . o terminfo . "-1" ( ) ( ) . System V ( AIX HP-UX Solaris) ncurses . curses NetBSD ncurses X/Open Curses . (HISTORY) (Bill Joy) 4BSD tput . . System V tput . o SVr2 ( ) tput . tput tparm(3X) . o SVr3 ( ) init reset ( ) reset tset BSD ( / Eric Allman) . o SVr4 ( ) orig_colors (oc) orig_pair (op) init . (Keith Bostic) tput BSD 4.3BSD-Reno ( ) () terminfo: clear init longname reset tput System V . termcap termcap . tput BSD tset BSD . "clear" tput . "" BSD tput . tput ncurses System V BSD mytinfo (Ross Ridge) comp.sources.unix . BSD . (Eric Raymond) tput ( mytinfo) ncurses . . ncurses 6.1 ( ) tset tput . o tset . o tset reset_1string (rs1) reset_2string (rs2) reset_file (rf) tput . reset tset . ncurses 6.1 " (reset)" () . : o tset (pseudoterminal) ( ) . o tset tput. (EXAMPLES) tput init TERM. (export) TERM $HOME/.profile . tput -T5620 reset AT&T 5620 TERM. tput cnorm (normal visibility). tput home : " (home)" . tput clear : clear_screen . tput cols . tput -Tadm3a cols ADM-3A. strong=`tput smso` normal=`tput rmso` : strong normal (stand-out) . (prompt) . printf "${strong}Username:${normal} " tput hc (hard copy) . tput cup 23 4 . tput cup cursor_address (cup) ( ) . tput longname terminfo TERM. tput -S . -S "here document" . $ tput -S < clear > cup 10 10 > bold > ! (10, 10) (bold / ) . tput clear cup 10 10 bold "tput -S". (SEE ALSO) clear(1), stty(1), tabs(1), tset(1), curs_termcap(3X), terminfo(5), user_caps(5) ncurses 6.6 2025-11-11 tput(1)