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