#!/bin/sh
#
#  Window manipulation.
#
if [ "$#" -eq 0 ] ; then
	echo usage: `basename $0` 'task [...]'
	echo tasks:
	echo "	1	deiconify"
	echo "	2	iconify"
	echo "	3 x y	move window to (x, y) pixels"
	echo "	4 h w	resize window to (w, h) pixels"
	echo "	5	raise"
	echo "	6	lower"
	echo "	7	refresh"
	echo "	8 h w	resize text area to (w, h) cells"
	echo "	9 0	unmaximize"
	echo "	9 1	maximize"
	exit
fi
args=
for arg in $@ ; do
	if [ "$args" = "" ] ; then
		args="$arg"
	else
		args="$args;$arg"
	fi
done
echo -e -n "["${args}t
