home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / vms / 17927 < prev    next >
Encoding:
Internet Message Format  |  1992-11-13  |  1.2 KB

  1. Xref: sparky comp.os.vms:17927 comp.lang.c:16470
  2. Newsgroups: comp.os.vms,comp.lang.c
  3. Path: sparky!uunet!ukma!wupost!decwrl!concert!rti!jbs
  4. From: jbs@rti.rti.org
  5. Subject: Re: Getting terminal width from VAX-C ?
  6. Message-ID: <1992Nov13.160706.13231@rti.rti.org>
  7. Organization: Research Triangle Institute, RTP, NC
  8. References: <1992Nov11.101009.87@front.se> <1992Nov12.152852.3935@rti.rti.org> <1dud12INNd9g@gap.caltech.edu>
  9. Date: Fri, 13 Nov 92 16:07:06 GMT
  10. Lines: 19
  11.  
  12. In article <1dud12INNd9g@gap.caltech.edu> carl@SOL1.GPS.CALTECH.EDU writes:
  13.  
  14. >In article <1992Nov12.152852.3935@rti.rti.org>, jbs@rti.rti.org writes:
  15.  
  16. >>>How do I implement the function "terminal_width()" ?
  17.  
  18. >>Example of how to get the page LENGTH deleted]
  19.  
  20. >Close, but no cigar.  The IO$_SENSEMODE characteristics buffer contains the
  21. >page length, not the page width.  For the page WIDTH you want to use $GETDVI,
  22. >specifying the item code DVI$_DEVBUFSIZ.
  23.  
  24. What's in your cigars?  This code works on my system (VMS 5.5 on a VAX 6520).
  25. Compile it and try it on yours after doing "$ set term/width=132" and then
  26. 80.  Or are we discussing a difference in terminology here?  I consider width
  27. to be the number of columns displayed on the terminal.  I would consider
  28. length to be the number of rows.
  29.  
  30.   -joe
  31.