home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / mgrdemos.zoo / demo / sh / shape < prev    next >
Encoding:
Text File  |  1989-01-25  |  811 b   |  29 lines

  1. #!/bin/sh
  2. #                        Copyright (c) 1987 Bellcore
  3. #                            All Rights Reserved
  4. #       Permission is granted to copy or use this program, EXCEPT that it
  5. #       may not be sold for profit, the copyright notice must be reproduced
  6. #       on copies, and credit should be given to Bellcore where it is due.
  7. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  8.  
  9. #    $Header: shape,v 4.1 88/06/21 14:01:37 bianchi Exp $
  10. #    $Source: /tmp/mgrsrc/demo/sh/RCS/shape,v $
  11.  
  12. #    reshape a window
  13.  
  14. ESC=""
  15. SHAPE="w"
  16.  
  17. if /bin/test $TERM != mgr
  18. then
  19.    echo "$0 only works on mgr terminals"
  20.    exit 1
  21. fi
  22.  
  23. case $# in
  24.    0) echo -n "${ESC}80,24$SHAPE" ;;
  25.    1) echo -n "${ESC}0,$1$SHAPE" ;;
  26.    2) echo -n "${ESC}$1,$2$SHAPE" ;;
  27.    *) echo "usage: $0 <columns> <rows>" ;;
  28. esac
  29.