home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: cs.vu.nl!irmen
- From: irmen@cs.vu.nl (Irmen de Jong)
- Subject: Re: Getting console size
- Nntp-Posting-Host: fluit.cs.vu.nl
- References: <DMEpF0.CnD.0.-s@cs.vu.nl>
- Sender: news@cs.vu.nl
- Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
- Date: Mon, 12 Feb 1996 13:12:03 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DMnzC4.IIE.0.-s@cs.vu.nl>
-
- On Wed, 7 Feb 1996 12:59:23 GMT Irmen de Jong (irmen@cs.vu.nl) (myself) wrote:
-
- : How exactly do the console (CON:) sequences regarding querying the
- : window size, cursor position etc. work?
-
- : I open CON: with MODE_READWRITE, write the window status request escape
- : sequence to it (errrr was that <esc>[q) and tried to read the reply.
- : But, no reply showed up!
-
- : I'd like to query the size of the CON: window, so I can use it for
- : text viewers/editors etc.
-
- Just like vim does. But; vim reads the console size from the console
- structure (not sure how). I want to query it 'legally' from CON: itself,
- by sending CON: a proper escape sequence. How do I read the result???
- Does this work at all? (Where are the "window status report" sequences
- for, then?)
-
- Any help appreciated,
- Irmen
-
- --
- / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/) \
- \ ``Nothing lasts forever'' -- Species /
-