From de1d2d2249dc67b2a914d229a6bed2af8a8343d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n?= Date: Fri, 27 Dec 2019 22:55:05 +0000 Subject: [PATCH] clear: add -x, -T and -V examples (#3684) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Zlatan Vasović Co-authored-by: Starbeamrainbowlabs --- pages/common/clear.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/common/clear.md b/pages/common/clear.md index aa133e6a92..fb7c1daaef 100644 --- a/pages/common/clear.md +++ b/pages/common/clear.md @@ -2,6 +2,18 @@ > Clears the screen of the terminal. -- Clear the screen (equivalent to typing Control-L when using the bash shell): +- Clear the screen (equivalent to pressing Control-L in Bash shell): `clear` + +- 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}}` + +- Show the version of `ncurses` used by `clear`: + +`clear -V`