home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / misc / 6501 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.1 KB  |  23 lines

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