home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8866 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.3 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!bt00
  2. From: bt00@ns1.cc.lehigh.edu (Binod Taterway)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Changing text color and detecting screen size ...
  5. Message-ID: <1992Aug28.211144.111789@ns1.cc.lehigh.edu>
  6. Date: 28 Aug 92 21:11:44 GMT
  7. Organization: Lehigh University
  8. Lines: 22
  9.  
  10. I have asked this question before but I did not get satisfactory replies.
  11. Here goes again.
  12.  
  13. I have written a C program that uses curses. Without using video libraries
  14. and other complicated procedure, I would want to change text colors:
  15. foreground and background. I will be perfectly happy with 7 colors. I looked
  16. in the MSDOS Encyclopedia, and found Int 10H for video functions. I am not
  17. clear whether or not this is the interrupt routine I should use. Any
  18. suggestions to this effect will be appreciated.
  19.  
  20. Along the same lines, how do I detect number of lines and columns of a
  21. screen. Note I am not doing any video programming. I have seen programs that
  22. convert your screen to 80x28. My program uses only 25 lines instead of 28.
  23. Where do I look for the number of lines/columns? Is it somewhere stored in the
  24. BIOS area? Thanks a bunch.
  25. -- 
  26.  
  27. -Binod
  28. ------------------------
  29. Binod Taterway
  30. Sr. User Consultant, LUCC
  31. bt00@Lehigh.EDU
  32.