2025-03-14 21:59:59 -06:00
|
|
|
# clear
|
|
|
|
|
|
|
|
|
|
> Clears the screen of the terminal.
|
|
|
|
|
> More information: <https://manned.org/clear>.
|
|
|
|
|
|
|
|
|
|
- Clear the screen:
|
|
|
|
|
|
|
|
|
|
`clear`
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Clear the screen but keep the terminal's scrollback buffer (equivalent to pressing `<Ctrl l>` in Bash):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`clear -x`
|
|
|
|
|
|
|
|
|
|
- Indicate the type of terminal to clean (defaults to the value of the environment variable `TERM`):
|
|
|
|
|
|
|
|
|
|
`clear -T {{type_of_terminal}}`
|
|
|
|
|
|
|
|
|
|
- Display the version of `ncurses` used by `clear`:
|
|
|
|
|
|
|
|
|
|
`clear -V`
|