Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!ducvax.auburn.edu!eng.auburn.edu!bt From: bt@eng.auburn.edu (bt garner) Newsgroups: comp.os.msdos.misc Subject: Re: EGA and other text screens Keywords: EGA,text screen height Message-ID: Date: 29 Mar 91 16:09:07 GMT References: <8196@dnlunx.pttrnl.nl> Organization: Process Modeling Group Lines: 20 Nntp-Posting-Host: lab23.eng.auburn.edu In article <8196@dnlunx.pttrnl.nl> dondorp@dnlunx.pttrnl.nl (Dondorp E.) wrote: > >How can a program determine the width and height of the text screen. >I found out there was a BIOS call that returned the number of >character columns, but none returns the number of lines. >I tried to figure out the height via the 'get screen mode' BIOS call >only to find out that both 80x25 and 80x43 are screen mode nr 7. > >So the real question is: can I find out the screen height unambigously? > (and of course how?) > Screen width can be retrieved from memory location 0H:44AH Screen height can be retrieved from location 40H:84H these are both short int values. bt garner (bt@eng.auburn.edu) mutant systems programmer, process modeling group chemical engineering department, auburn university