git://git.iain.cx/iain
/
profile.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Signs tidyup.
[profile.git]
/
opt
/
bin
/
usize
1
#!/bin/bash -i
2
#
3
# usize: Set urxvt (or terminal which understands the same escape sequences)
4
# size.
5
# Usage: usize <width> [<height>]
6
#
7
8
width=${COLUMNS:-80}
9
height=${LINES:-24}
10
11
case $# in
12
0)
13
echo "Usage: usize $width $height"
14
exit 1
15
;;
16
1) width=$1;;
17
2) width=$1; height=$2;;
18
esac
19
20
echo -e "\033[8;$height;$width;t"
21
exit 0