🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13383

Re: How do I find the size of the screen?

#13383
From: Thomson
Date: Tue, 09 Jan 1990 05:57
10 lines
1116 bytes
If i remember correctly, if you set the console handler into RAW mode
(which you do by sending a IO request to the handler) you can then just
write a certain ANSI sequence to the handler (by just doing a printf)
the console will (since it acts like an ANSI terminal) send back a text string
which tells you the width and height (in characters) of the console.

I have code which does all this, but I don't have it with me now on this machine.  Let me know if you really want it and I can send it to you..  (although I 
have problems with file transfers - but I can give it a try if you want.)

Duncan Thomson
Technical Details
Message-ID: <86114@linus.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!umich!samsung!think!snorkelwacker!spdcc!merk!alliant!linus!mbunix!duncant
References: <0983.AA0983@noel> <129683@sun.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!umich!samsung!think!snorkelwacker!spdcc!merk!alliant!linus!mbunix!duncant
From: duncant@mbunix.mitre.org (Thomson)
Newsgroups: comp.sys.amiga.tech
Subject: Re: How do I find the size of the screen?
Message-ID: <86114@linus.UUCP>
Date: 9 Jan 90 05:57:31 GMT
References: <0983.AA0983@noel> <129683@sun.Eng.Sun.COM>
Sender: news@linus.UUCP
Reply-To: duncant@mbunix.mitre.org (Thomson)
Organization: The MITRE Corp. Bedford, MA
Lines: 10