diff options
-rwxr-xr-x[-rw-r--r--] | term-utils/reset | 6 | ||||
-rwxr-xr-x | term-utils/reset.033c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/term-utils/reset b/term-utils/reset index 92d253907..68de82eb1 100644..100755 --- a/term-utils/reset +++ b/term-utils/reset @@ -8,6 +8,6 @@ tput rmul tput rs1 tput rs2 tput rs3 -bot=$[ ${LINES:-`tput lines`} - 1 ] -if test "$bot" -le "0"; then bot=24; fi -tput csr 0 $bot +bot=$((${LINES:-$(tput lines)} - 1)) +if test "${bot}" -le "0"; then bot=24; fi +tput csr 0 ${bot} diff --git a/term-utils/reset.033c b/term-utils/reset.033c index fb9834db2..fc7fad6b1 100755 --- a/term-utils/reset.033c +++ b/term-utils/reset.033c @@ -8,4 +8,4 @@ tput rmul tput rs1 tput rs2 tput rs3 -echo -e \\033c +printf "\\033c\n" |