Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   reset    ( 1 )

инициализировать терминал или запросить базу данных terminfo (initialize a terminal or query terminfo database)

  Name  |  Synopsis  |  Description  |  Examples  |  Files  |  Exit  |  Diagnostic  |    History    |  Portability  |  See also  |

История (History)

The tput command was begun by Bill Joy in 1980.  The initial
       version only cleared the screen.

AT&T System V provided a different tput command, whose init and reset subcommands (more than half the program) were incorporated from the reset feature of BSD tset written by Eric Allman.

Keith Bostic replaced the BSD tput command in 1989 with a new implementation based on the AT&T System V program tput. Like the AT&T program, Bostic's version accepted some parameters named for terminfo capabilities (clear, init, longname and reset). However (because he had only termcap available), it accepted termcap names for other capabilities. Also, Bostic's BSD tput did not modify the terminal I/O modes as the earlier BSD tset had done.

At the same time, Bostic added a shell script named 'clear', which used tput to clear the screen.

Both of these appeared in 4.4BSD, becoming the 'modern' BSD implementation of tput.

This implementation of tput began from a different source than AT&T or BSD: Ross Ridge's mytinfo package, published on comp.sources.unix in December 1992. Ridge's program made more sophisticated use of the terminal capabilities than the BSD program. Eric Raymond used that tput program (and other parts of mytinfo) in ncurses in June 1995. Using the portions dealing with terminal capabilities almost without change, Raymond made improvements to the way the command-line parameters were handled.