summaryrefslogtreecommitdiff
path: root/term-utils/reset
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/reset')
-rwxr-xr-xterm-utils/reset13
1 files changed, 13 insertions, 0 deletions
diff --git a/term-utils/reset b/term-utils/reset
new file mode 100755
index 0000000..68de82e
--- /dev/null
+++ b/term-utils/reset
@@ -0,0 +1,13 @@
+#!/bin/sh
+stty sane
+tput clear
+tput rmacs
+tput rmm
+tput rmso
+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}