Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pyuxqq.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!bellcore!sabre!zeta!epsilon!gamma!pyuxww!pyuxqq!ral From: ral@pyuxqq.UUCP Newsgroups: net.micro.pc Subject: Reply to Tim Thomas query about ansi.sys and colors in simterm Message-ID: <701@pyuxqq.UUCP> Date: Mon, 1-Apr-85 18:34:03 EST Article-I.D.: pyuxqq.701 Posted: Mon Apr 1 18:34:03 1985 Date-Received: Fri, 5-Apr-85 13:54:09 EST Organization: Bell Communications Research, Piscataway, NJ Lines: 97 Tim Thomas: my mail response to your letter was not deliverable. > I read an articles you posted to net.micro.pc about using simterm. I cant > help you with your problem, but I was wondering if you could help me with > mine. How do you use the ansi.sys driver? I have tried many different > ways but cant get it to work. I tried putting it in the config.sys file, > but to no avail. (i may have done that wrong though). Any help you could > give me would be greatly appreciated. > > Tim Thomas ================================================================================ Here's how I've set up the ansi.sys device driver. I have a PC/AT with hard disk (c:) on which I have copied the files from the DOS disk and supplemental programs DOS disk to the subdirectories c:\dos and c:\dosx, respectively. (You'll notice that I have PATH set to pick up commands from these directories.) In particular, the device drivers ansi.sys and vdisk.sys are in the c:\dos directory. I don't see a way to use the SHELL=... command to avoid putting command.com in the root directory (I would prefer keeping it in c:\dos). Refer to page 2-14 of the DOS Technical Reference Version 3.0 for definition of escape sequences for changing foreground and background colors. For example, with these codes: 30 black foreground 31 red foreground 32 green foreground 33 yellow foreground 34 blue foreground ... 40 black background ... 43 yellow background ... 47 white background The sequence ESC[33;40m sets yellow foreground on black background (ESC is escape character). Here are the listings of my config.sys and autoexec.bat: config.sys: break=on buffers=10 country=001 device=c:\dos\ansi.sys lastdrive=c autoexec.bat PATH c:\dos;c:\dosx;.;c:\;c:\bin;c:\ctools prompt $e[33;40m prompt $p$g cd sidekick sk cd .. Notice that prompt expands $e to an ESC character. Here's a partial listing of the root directory: Volume in drive C has no label Directory of C:\ TMP