home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.vms:17927 comp.lang.c:16470
- Newsgroups: comp.os.vms,comp.lang.c
- Path: sparky!uunet!ukma!wupost!decwrl!concert!rti!jbs
- From: jbs@rti.rti.org
- Subject: Re: Getting terminal width from VAX-C ?
- Message-ID: <1992Nov13.160706.13231@rti.rti.org>
- Organization: Research Triangle Institute, RTP, NC
- References: <1992Nov11.101009.87@front.se> <1992Nov12.152852.3935@rti.rti.org> <1dud12INNd9g@gap.caltech.edu>
- Date: Fri, 13 Nov 92 16:07:06 GMT
- Lines: 19
-
- 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.
-
- -joe
-