tput(1) tput(1) tput - terminfo 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 tput terminfo ( ). cap-code. terminfo(5) cap-codes . user_caps(5) . . tput 0 cap-code 1 . numeric tput cap-code ( -1 ) . tput cap-code . tput 0 " " . cap-code . tput : init reset longname. " ". 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 o ( 8 ). (4) " " terminfo(5) tput . (5) tput . . reset . . (1) tput "" o ("cooked") (echo) o cbreak raw o o . (2) tput . tput . " " terminfo(5). longname terminfo . "|". X/Open Curses " " . tic terminfo . . tput . terminfo(5). : "tput init" "tput reset" . ioctl(2). tput clear init reset () . reset tput "tput reset". ncurses 5.2 2000. . clear . init . reset tset(1) ( reset). ( init) tput cap-codes lines cols : setupterm(3X) . o tput . . o "NAWS": . o LINES COLUMNS . -T tput use_tioctl(TRUE) ( ). -S tput. tput ( "" ). cap-code . -S 0 1 ( " " ). . tput tparm(3X). -T type type () . TERM. LINES COLUMNS. -v tput . -V ncurses tput . -x "tput clear" . tput . -S ------------------------------------------------------------------------ 0 1 2 3 4 >4 (4 + errno) -S. -S ------------------------------------------------------------------------ 0 1 unused 4 tput -T. COLUMNS . LINES . TERM . . /usr/share/tabset /usr/share/terminfo tput ncurses System V . o "tput cap-code" . . init reset tput System V tset 4.1cBSD . ( /dev/tty) ncurses 1200 . . ncurses 6.1 ( "" ) tput . System V tset ( tset 4.4BSD). ( 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-codes) . ncurses OpenBSD. ncurses tput termcap terminfo termcap . termcap terminfo ncurses terminfo. o dl delete_line termcap parm_delete_line terminfo. termcap DL parm_delete_line. terminfo dl1 delete_line. o ed exit_delete_mode termcap clr_eos terminfo. termcap cd clr_eos. terminfo rmdc exit_delete_mode. longname -S cup AT&T/USL curses SVr4 (1989). 4.3BSD-Reno (1990) longname 1994 NetBSD . IEEE Std 1003.1/The Open Group Base Specifications Issue 7 (POSIX.1-2008) clear init reset . . o ncurses clear . (init longname) . o tput SVr4 Solaris IRIX64 HP-UX AIX Tru64 . o FreeBSD termcap terminfo tput . 2010 tput NetBSD terminfo. ( FreeBSD) termcap. 2021 FreeBSD tput ncurses terminfo ( ) termcap ( ). ( ) . o X/Open Curses Issue 7 tput cap-code . o tput: POSIX ( ) X/Open Curses ( ). POSIX X/Open Curses . o tput curses curses tput (cap-codes) . X/Open Curses Issue 7 (2009) . X/Open Curses ( curses System V). o 4 " " " ". Solaris xcurses " " . o 255 terminfo. "-1" ( ). System V (AIX HP-UX Solaris) ncurses. NetBSD curses ncurses X/Open Curses. tput 4BSD 1980. . System V tput . o SVr2 (1984) tput . tput tparm(3X) . o SVr3 (1987) init reset ( ) reset tset BSD . o SVr4 (1989) orig_colors (oc) orig_pair (op) init . tput BSD 4.3BSD-Reno (1990) tput System V () terminfo : clear init longname reset. termcap termcap . tput BSD tset BSD. "clear" tput . "'' tput BSD. tput ncurses System V BSD mytinfo comp.sources.unix 1992. BSD. tput ( mytinfo) ncurses 1995. . ncurses 6.1 (2018) tset tput . o tset . o tset reset_1string (rs1) reset_2string (rs2) reset_file (rf) tput. reset tset . ncurses 6.1 " '' (). . o tset ( ) (). o : tset tput. tput init TERM. $HOME/.profile TERM. tput -T5620 reset AT&T 5620 TERM. tput cnorm . tput home 0 0: "'' (home). tput clear : clear_screen . tput cols . tput -Tadm3a cols ADM-3A. strong=`tput smso` normal=`tput rmso` : strong normal (stand-out) . . printf "${strong}Username:${normal} " tput hc (hard copy). tput cup 23 4 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) ( ). tput clear cup 10 10 bold "tput -S" . clear(1) stty(1) tabs(1) tset(1) curs_termcap(3X) terminfo(5) user_caps(5) 3 . . : . ncurses 6.6 11 2025 tput(1)