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

  1. Xref: sparky comp.os.vms:17890 comp.lang.c:16438
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  3. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  4. Newsgroups: comp.os.vms,comp.lang.c
  5. Subject: Re: Getting terminal width from VAX-C ?
  6. Date: 12 Nov 1992 19:58:26 GMT
  7. Organization: HST Wide Field/Planetary Camera
  8. Lines: 20
  9. Distribution: world
  10. Message-ID: <1dud12INNd9g@gap.caltech.edu>
  11. References: <1992Nov11.101009.87@front.se>,<1992Nov12.152852.3935@rti.rti.org>
  12. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  13. NNTP-Posting-Host: sol1.gps.caltech.edu
  14.  
  15. In article <1992Nov12.152852.3935@rti.rti.org>, jbs@rti.rti.org writes:
  16. =In article <1992Nov11.101009.87@front.se> samuel@front.se writes:
  17. =>
  18. =>Does anybody out there know how to get the TERMINAL WIDTH from VAX-C ?
  19. =>
  20. =>How do I implement the function "terminal_width()" ?
  21.  
  22. [Example of how to get the page LENGTH deleted]
  23.  
  24. Close, but no cigar.  The IO$_SENSEMODE characteristics buffer contains the
  25. page length, not the page width.  For the page WIDTH you want to use $GETDVI,
  26. specifying the item code DVI$_DEVBUFSIZ.
  27. --------------------------------------------------------------------------------
  28. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  29.  
  30. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  31. understanding of astronomy is purely at the amateur level (or below).  So
  32. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  33. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  34. hold me responsible for it, but my organization had nothing to do with it.
  35.