You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
versions: setterm from util-linux 2.33.1 on Ubuntu 19.04 and setterm from util-linux 2.34 on Manjaro
according to setterm help: --clear [all|rest] clear screen and set cursor position
also according to man page: --clear [all|rest] Without an argument or with the argument all, the entire screen is cleared and the cursor is set to the home position, just like clear(1) does. With the argument rest, the screen is cleared from the current cursor position to the end.
Note that optional arguments in GNU universe requires '=', for example --clear=all. I have fixed man page and --help to make it more obvious for end-users.
versions:
setterm from util-linux 2.33.1
on Ubuntu 19.04 andsetterm from util-linux 2.34
on Manjaroaccording to setterm help:
--clear [all|rest] clear screen and set cursor position
also according to man page:
--clear [all|rest] Without an argument or with the argument all, the entire screen is cleared and the cursor is set to the home position, just like clear(1) does. With the argument rest, the screen is cleared from the current cursor position to the end.
however then i do:
according to source code this needs to be
reset
https://github.com/karelzak/util-linux/blob/2c308875a7fa1aaa44892c368f6b37bcfcb8879a/term-utils/setterm.c#L617
furthermore according to the man page description above
--clear
can be usedWithout an argument or...
, however:however according to source code it requires a argument https://github.com/karelzak/util-linux/blob/2c308875a7fa1aaa44892c368f6b37bcfcb8879a/term-utils/setterm.c#L500
The text was updated successfully, but these errors were encountered: