Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!samsung!crackers!m2c!umvlsi!dime!smectos!eli From: eli@smectos.gang.umass.edu (Eli Brandt) Newsgroups: comp.lang.pascal Subject: Re: Change fore/background color permanently Message-ID: <24515@dime.cs.umass.edu> Date: 2 Jan 91 02:57:18 GMT References: <73116@unix.cis.pitt.edu> <1990Dec28.065520.22248@cs.mcgill.ca> Sender: news@dime.cs.umass.edu Reply-To: eli@smectos.CS.UMASS.EDU (Eli Brandt) Organization: University of Massachusetts, Amherst Lines: 19 In article <1990Dec28.065520.22248@cs.mcgill.ca> einstein@cs.mcgill.ca (Michael CHOWET) writes: >In article <73116@unix.cis.pitt.edu> cncst@unix.cis.pitt.edu (Christophe N. Christoff) writes: >>I have a color graphics adaptor, and likes to change the DOS default >>color to high intensity white over blue instead of light white over >>black. Can I do this with Turbo pascal? > > It'd be easier to do it right from DOS, though. Try creating a program >(in TP) that asks you for the colors you want, then based on that and >the required numbers as specified in any DOS text that discusses ANSI.SYS >have it write a batch file that contains the line: > [ ANSI.SYS discussion deleted ] If you want to permanently change DOS to use a different color, you can patch COMMAND.COM to clear the screen differently. Use DEBUG to search COMMAND.COM for all INT 10 calls, CD10h. Find the one which is CLS (where it scrolls the screen 25 lines) and patch the byte that it loads into BH, which controls the color. This should work on any DOS version, even OEM and weirdo versions. Eli