#!/bin/sh

# usage: cs ARG
# set scroll region for terminal to lines 1 - ARG
# to create for instance a statusline area.

if [ $# -eq 0 ]
then
	echo usage: cs N
	echo where N is the number of lines to set the scroll region to.
	exit
fi

stty rows ${1}			# let kernel know about it

echo -en "\033c"		# first clear entire screen
echo -en "\033[1;${1}r"		# set scroll region to line 1 -- ${ROWS}
