File: treset

package info (click to toggle)
splitvt 1.6.5-0potato1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 332 kB
  • ctags: 399
  • sloc: ansic: 4,684; sh: 78; makefile: 55; perl: 15
file content (11 lines) | stat: -rwxr-xr-x 248 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# A simple script to reset the scrolling regions of a vt100 terminal
#
# 'echo' must be able to understand octal escape sequences.

if [ "$BASH" ]; then
	echo -e "\033[m\033[;r\033[;H\033[2J"
else
	echo "\033[m\033[;r\033[;H\033[2J"
fi