summaryrefslogtreecommitdiff
path: root/src/decset
blob: a68bfb7579e37421b3127d8fb59cfc90c42b16d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
#  Set or reset DEC private modes.  You'll need the XTerm docs.
#
if [ "$#" -eq 0 ] ; then
	echo usage: `basename $0` '[ -r | -s ] mode [...]'
	exit
fi
char=h
for arg in $@ ; do
	case "$arg" in
	-r) char=l ;;
	-s) char=h ;;
	*) echo -n -e '\033[?'${arg}${char}
	esac
done