Some fields were being deleted erroneously.
[profile.git] / usize
1 #!/bin/bash -i
2 #
3 # $Id$
4 #
5 # usize: Set urxvt (or terminal which understands the same escape sequences) 
6 #        size.
7 # Usage: usize <width> [<height>]
8 #
9
10 width=${COLUMNS:-80}
11 height=${LINES:-24}
12
13 case $# in
14   0)
15     echo "Usage: usize $width $height"
16     exit 1
17   ;;
18   1) width=$1;;
19   2) width=$1; height=$2;;
20 esac
21
22 echo -e "\033[8;$height;$width;t"
23 exit 0