File: treset

package info (click to toggle)
splitvt 1.6.6-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,004 kB
  • sloc: ansic: 4,953; sh: 99; perl: 15; makefile: 10
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