#!/bin/sh
#                        Copyright (c) 1987 Bellcore
#                            All Rights Reserved
#       Permission is granted to copy or use this program, EXCEPT that it
#       may not be sold for profit, the copyright notice must be reproduced
#       on copies, and credit should be given to Bellcore where it is due.
#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.

#	$Header: shape,v 4.1 88/06/21 14:01:37 bianchi Exp $
#	$Source: /tmp/mgrsrc/demo/sh/RCS/shape,v $

#	reshape a window

ESC=""
SHAPE="w"

if ismgrterm; then :
else
   echo "$0 only works on mgr terminals"
   exit 1
fi

case $# in
   0) echo -n "${ESC}80,24$SHAPE" ;;
   1) echo -n "${ESC}0,$1$SHAPE" ;;
   2) echo -n "${ESC}$1,$2$SHAPE" ;;
   *) echo "usage: $0 <columns> <rows>" ;;
esac
