home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / misc / 4232 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.2 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!uwm.edu!bionet!parc!xerox!putz
  2. From: putz@parc.xerox.com (Steve Putz)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: Can one resize cmdtool windows from cmd line?
  5. Keywords: cmdtool
  6. Message-ID: <1992Sep15.170302.12666@parc.xerox.com>
  7. Date: 15 Sep 92 17:03:02 GMT
  8. References: <1992Sep15.155220.19031@tin.monsanto.com>
  9. Sender: news@parc.xerox.com
  10. Reply-To: putz@parc.xerox.com (Steve Putz)
  11. Organization: Xerox PARC
  12. Lines: 21
  13.  
  14. Look in the shelltool(1) man page.  The escape sequences listed there
  15. apply to cmdtool also (since it it really the same tool):
  16.  
  17.      It is possible  to  have  terminal-based  p  special  escape
  18.      sequences.   These escape sequences may also be sent by typ-
  19.      ing a key  appropriately  mapped  using  the  mapo  function
  20.      described  above.   The  following  functions pertain to the
  21.      tool in which the tty subwindow resides, not the tty subwin-
  22.      dow itself.
  23.  
  24.           \E[8;ROWS;COLSt     - stretch, to ROWS  COLS  size  (in
  25.                               characters)
  26.  
  27.  
  28. So, to force the window to 80 x 24 characters, use something like:
  29.  
  30.     /usr/5bin/echo "\033[8;24;80t\c"
  31.  
  32. Steve Putz <putz@parc.xerox.com>
  33. Xerox Palo Alto Research Center
  34. Palo Alto, California
  35.