# This is free software; you can redistribute it and/or modify it under
# the terms of the GNU Library General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#!/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
printf "["${args}t
