home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3152 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: yama.mcc.ac.uk!dmu!usenet
  2. From: Timothy Eves <se1te@dmu.ac.uk>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Getting console size
  5. Date: Mon, 12 Feb 1996 17:41:59 +0000
  6. Organization: De Montfort University, Central Newsserver Leicester UK
  7. Message-ID: <311F7BE7.CFD@dmu.ac.uk>
  8. References: <DMEpF0.CnD.0.-s@cs.vu.nl> <DMnzC4.IIE.0.-s@cs.vu.nl>
  9. NNTP-Posting-Host: merlin.cms.dmu.ac.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
  14.  
  15. :Just like vim does. But; vim reads the console size from the console
  16. :structure (not sure how). I want to query it 'legally' from CON:
  17. itself,
  18.  
  19. As far as I'm aware it's not illegal too read the console size from the
  20. console structure. The console structure is (if I remember correctly)
  21. stored in the device's StdIOReq->Unit entry, you'll have to cast that as
  22. a Con_Unit structure, before you can read the values.
  23.  
  24. :Does this work at all? 
  25.  
  26. Yes
  27.  
  28. :(Where are the "window status report" sequences for, then?)
  29.  
  30. You can find a good explanation in the RKM Devices manual, however if
  31. you really want them then E-Mail me and I'll send you the relevant
  32. codes.
  33.  
  34. :by sending CON: a proper escape sequence. How do I read the result???
  35.  
  36. You have to wait for the con to send the results through the input IOReq
  37. as a special Esc sequence.  You then need to convert the ascii
  38. representation into WORD values.
  39.  
  40. ------------------------------------------------------------O----------------    
  41. Out of the gloom came a voice, "Smile  and  be  happy things| EMail To:
  42. could  be  worse",  it  said.  So I smiled and I was  happy,|
  43. se1te@dmu.ac.uk
  44. and  behold  things  did  get worse.                |
  45. ------------------------------------------------------------O----------------
  46.