2017-12-05 20:33:49 +00:00
|
|
|
# clear
|
|
|
|
|
|
|
|
> Clears the screen of the terminal.
|
2021-04-12 07:54:04 +01:00
|
|
|
> More information: <https://manned.org/clear>.
|
2017-12-05 20:33:49 +00:00
|
|
|
|
2019-12-27 22:55:05 +00:00
|
|
|
- Clear the screen (equivalent to pressing Control-L in Bash shell):
|
2017-12-05 20:33:49 +00:00
|
|
|
|
|
|
|
`clear`
|
2019-12-27 22:55:05 +00:00
|
|
|
|
|
|
|
- Clear the screen but keep the terminal's scrollback buffer:
|
|
|
|
|
|
|
|
`clear -x`
|
|
|
|
|
|
|
|
- Indicate the type of terminal to clean (defaults to the value of the environment variable `TERM`):
|
|
|
|
|
|
|
|
`clear -T {{type_of_terminal}}`
|
|
|
|
|
2024-01-30 04:55:24 +00:00
|
|
|
- Display the version of `ncurses` used by `clear`:
|
2019-12-27 22:55:05 +00:00
|
|
|
|
|
|
|
`clear -V`
|