home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.misc
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!watserv2.uwaterloo.ca!maxwell.uwaterloo.ca!praetzel
- From: praetzel@maxwell.uwaterloo.ca (Eric Praetzel)
- Subject: Detecting text screen; # columns, # rows
- Message-ID: <Bz3x4G.D0K@watserv2.uwaterloo.ca>
- Sender: news@watserv2.uwaterloo.ca
- Organization: University of Waterloo
- Date: Fri, 11 Dec 1992 18:09:51 GMT
- Lines: 12
-
- Does anyone have a fool proof way to detect the video card mode, #
- columns and row of a text screen?
- It seems that Borland C's scheme is right about 50% of the time while
- using Int 10 subfunction 0xf is right even less of the time.
- Memory location 0x40:0x84 is the # of lines but where is the number of
- columns?
- Basically I need to be able to write strings to any point on the screen.
- Currently I can set it up but writing runs into problems because the
- routines think that I am writing outside of the screen area. Do I have
- to write it all myself or is there a way to make the printing routines
- think that the screen is as big as it is (ie 132 * 50 and not 132 * 25).
- - Eric
-