git://git.iain.cx/iain
/
profile.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ec2b25dc0a62249a0b1b8c339799d6ea317c5e74
[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
11
height=$LINES
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