home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.vms:17942 comp.lang.c:16478
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms,comp.lang.c
- Subject: Re: Getting terminal width from VAX-C ?
- Date: 13 Nov 1992 18:18:51 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 30
- Message-ID: <1e0ribINNl8q@gap.caltech.edu>
- References: <1992Nov11.101009.87@front.se> <1992Nov12.152852.3935@rti.rti.org> <1dud12INNd9g@gap.caltech.edu>,<1992Nov13.160706.13231@rti.rti.org>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <1992Nov13.160706.13231@rti.rti.org>, jbs@rti.rti.org writes:
- >In article <1dud12INNd9g@gap.caltech.edu> carl@SOL1.GPS.CALTECH.EDU writes:
- >
- >>In article <1992Nov12.152852.3935@rti.rti.org>, jbs@rti.rti.org writes:
- >
- =>>>How do I implement the function "terminal_width()" ?
- =
- =>>Example of how to get the page LENGTH deleted]
- =
- =>Close, but no cigar. The IO$_SENSEMODE characteristics buffer contains the
- =>page length, not the page width. For the page WIDTH you want to use $GETDVI,
- =>specifying the item code DVI$_DEVBUFSIZ.
- =
- =What's in your cigars? This code works on my system (VMS 5.5 on a VAX 6520).
- =Compile it and try it on yours after doing "$ set term/width=132" and then
- =80. Or are we discussing a difference in terminology here? I consider width
- =to be the number of columns displayed on the terminal. I would consider
- =length to be the number of rows.
-
- Sorry, my mistake. I wrote my response from home, where I don't have access to
- the manuals. I confused the second word of the characteristics buffere with
- the eight byte. Mea culpa.
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-