home *** CD-ROM | disk | FTP | other *** search
- Path: yama.mcc.ac.uk!dmu!usenet
- From: Timothy Eves <se1te@dmu.ac.uk>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Getting console size
- Date: Mon, 12 Feb 1996 17:41:59 +0000
- Organization: De Montfort University, Central Newsserver Leicester UK
- Message-ID: <311F7BE7.CFD@dmu.ac.uk>
- References: <DMEpF0.CnD.0.-s@cs.vu.nl> <DMnzC4.IIE.0.-s@cs.vu.nl>
- NNTP-Posting-Host: merlin.cms.dmu.ac.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
-
- :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,
-
- As far as I'm aware it's not illegal too read the console size from the
- console structure. The console structure is (if I remember correctly)
- stored in the device's StdIOReq->Unit entry, you'll have to cast that as
- a Con_Unit structure, before you can read the values.
-
- :Does this work at all?
-
- Yes
-
- :(Where are the "window status report" sequences for, then?)
-
- You can find a good explanation in the RKM Devices manual, however if
- you really want them then E-Mail me and I'll send you the relevant
- codes.
-
- :by sending CON: a proper escape sequence. How do I read the result???
-
- You have to wait for the con to send the results through the input IOReq
- as a special Esc sequence. You then need to convert the ascii
- representation into WORD values.
-
- ------------------------------------------------------------O----------------
- Out of the gloom came a voice, "Smile and be happy things| EMail To:
- could be worse", it said. So I smiled and I was happy,|
- se1te@dmu.ac.uk
- and behold things did get worse. |
- ------------------------------------------------------------O----------------
-