DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

clear(C)


clear -- clear a terminal screen

Syntax

clear [ term ]

Description

The clear command clears the screen. If term is not specified, the terminal type is obtained from the TERM environment variable.

Standard output may be redirected to another terminal to clear its screen. You must have write permission on the other terminal for the command to take effect. The term parameter must be supplied if the terminal is of a different type than the one from which the command is issued.

If a video terminal does not have a clear screen capability, newlines are output to scroll the screen clear. If the standard output is a hardcopy, the paper is advanced to the top of the next page.

Diagnostics

If the standard output is not a terminal, clear issues an error message.

Files

/etc/termcap

See also

environ(M), termcap(F), tput(C)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003