summaryrefslogtreecommitdiff
path: root/term-utils/reset
blob: 68de82eb1cba9b6e3ace2c53d51d0b0a1ea3a691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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}