Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site felix.UUCP Path: utzoo!linus!decvax!decwrl!pyramid!hplabs!felix!billw From: billw@felix.UUCP (Bill Weinberger) Newsgroups: net.micro.pc Subject: Re: forcing color change from dos Message-ID: <891@felix.UUCP> Date: Tue, 18-Feb-86 13:04:32 EST Article-I.D.: felix.891 Posted: Tue Feb 18 13:04:32 1986 Date-Received: Thu, 20-Feb-86 00:04:00 EST References: <1031@loral.UUCP> Reply-To: billw@felix.UUCP (Bill Weinberger) Organization: FileNet Corp., Costa Mesa, CA Lines: 27 Keywords: color dos In article <1031@loral.UUCP> jvz@loral.UUCP (John Van Zandt) writes: >Having just gotten a color monitor the my IBM-PC/XT, I've decided I >don't like white characters on black background. How can I have >DOS set the color of my characters on a permanent basis (i.e., every >time I turn the system on)? I tried doing it in basic, but exiting >basic resets the colors (it appears). > The most straightforward way that I have found is to use the ANSI.SYS device driver included with DOS. The DOS User's Guide (2.0) or DOS Technical Manual (2.1, etc.) describe the escape sequences you can write to the con: device to invoke the various display attributes, such as color. Of course, other programs may have their own ideas about the color, but ANSI will use and restore your defined colors for talking to DOS and other programs that write to con:. Their are 3 major ways to write the escape sequences to con: (choose one): 1. use the "$e" meta-character in the PROMPT command 2. edit them into a file and then TYPE or COPY it to con: 3. write or obtain a program to do it Hope this helps. -- =============================================================================== Regards, Bill Weinberger ucbvax!trwrb!felix!billw ===============================================================================