Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site kontron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!pesnta!pertec!kontron!cramer From: cramer@kontron.UUCP (Clayton Cramer) Newsgroups: net.micro.pc Subject: re: screen colors in dos Message-ID: <215@kontron.UUCP> Date: Mon, 10-Jun-85 12:43:01 EDT Article-I.D.: kontron.215 Posted: Mon Jun 10 12:43:01 1985 Date-Received: Tue, 11-Jun-85 08:33:46 EDT References: <2700@harpo.UUCP> Organization: Kontron Electronics, Irvine, CA Lines: 16 > Well, folks, I've tied (with limited success) to change screen colors > using prompt. The biggest problem is this 'out of environment space' > business. What does it mean and how can I avoid the error? > > Kevin J Glass > harpo!kjg PROMPT works through the environment variable mechanism of PC-DOS. Unfortunately, PC-DOS has a *very* small amount of space for environment variables (128? 256? bytes), and if you have a number of environment variables set for other things, there may not be room for you to set the prompt as well. Better just to create a file with the ANSI color setting modes in it. If need be, you can build a BASIC program that stores the ANSI sequences into a file. (Note: BASIC can't directly set screen color with the ANSI sequences --- it's output (annoyingly enough) doesn't go through the ANSI driver.