[comp.os.msdos.programmer] DOS colors

ts@uwasa.fi (Timo Salmi) (02/25/91)

In article <1991Feb25.051313.2881@wpi.WPI.EDU> jhall@wpi.WPI.EDU (John Clinton Hall) writes:
>
>How do I change the color DOS uses to print with INT 21/40?  There must be a
>way to do it.  Norton's Screen Attributes does it.

It can also be easily done with ansi codes.  See /pc/ts/tsbat23.arc
for the facility.  Available by anonymous ftp from our site. 

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

fisher@sc2a.unige.ch (02/28/91)

In article <1991Feb25.051313.2881@wpi.WPI.EDU>, jhall@wpi.WPI.EDU (John Clinton Hall) writes:
> 
> How do I change the color DOS uses to print with INT 21/40?  There must be a
> way to do it.  Norton's Screen Attributes does it.

No.  The version of SA I've seen changes the _border_ color and sends an ansi
escape sequence to the console driver for the rest.  Try "sa ... > codes".
If you want to know how the ansi console driver changes the colors, you can
easily find one of the improved drivers (zansi, nansi, nnansi, ...), of
which some are available with the asm source files.

Better yet, check the well known interupt list.  
(at Simtel20: PD1:<MSDOS.INFO>INTER###.ZIP)

Markus Fischer, Dpt. of Anthropology, Geneva CH