chuck@drutx.UUCP (MillerCA) (05/14/85)
<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>> > > I have a Zenith 150 and was wondering if anyone knew of an easy way > to change the color of the letters on the screen while in MS-DOS (2.11). > > I would like to look at green characters for awhile instead of white. > > I do have ANSI.SYS installed but can't figure out how to use it > to change the color (If you can do it with that at all) > > Any help is greatly appreciated. > > Nick. > > > -- > > Nick Mason > NOSC San Diego , CA > > ihnp4 \ > akgua \ > decvax ------------------!sdcsvax!noscvax!mason > dcdwest / > ucbvax / %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% REF: PC Tech Journal Mar 1985 Page 36 a command to change foreground and background colors do the following: ------------------------------------------------------------ A>debug color.com { ignore the message FILE NOT FOUND } -rcx :20 -e 100 2b c0 1e 50 b8 03 00 cd 10 b8 00 06 b9 00 00 ba -e 110 50 20 b7 $? cd 10 b4 02 ba 00 00 b7 00 cd 10 cb -w writing 20 bytes -q ----------------------------------------------------------- where : $ is replaced with a color for background (0-7) ? is replaced with a color for foreground (0-f) Color codes can be found in the IBM Basic manual ########################################################### black 0 blue 2 green 4 cyan 6 red 8 magenta a brown c white e gray 1 lite blue 3 lite green 5 lite cyan 7 lite red 9 lite magenta b yellow d lite white f I have commands like red.com ,green.com and blue.com which I use in AUTOEXEC.BAT files to remind me of different DOS configurations. ------------------------------------------------------------ e.g. red background yellow foreground called RED ------------------------------------------------------------ debug red.com { ignore the message FILE NOT FOUND } -rcx :20 -e 100 2b c0 1e 50 b8 03 00 cd 10 b8 00 06 b9 00 00 ba -e 110 50 20 b7 8d cd 10 b4 02 ba 00 00 b7 00 cd 10 cb -w writing 20 bytes -q ____________________________________________________________ hope this helps you from the convoluted mind of: chuck miller (DR x4741) DR31-F25 ...drutx!chuck
pier@ur-univax.UUCP (05/16/85)
You can also us ethe powerfull PROMPT command in DOS. I use it to put the current directory, date and time on the top line of the screen and set the colors of that line and the rest of the screen. The following is a batch file that has 4 parameters: the top line foreground color the top line background color the screen foreground color the screen background color The parameters are numbers for each color between 0 and 7 echo off PROMPT $E[s$E[0;0H$E[3%1m$E[4%2mDirectory: $P $D $T$E[K$E[3%3m$E[4%4m$E[K$E[u$N$G this is going to go through the net. Happy coloring Pierre Darmon University of Rochester {allegra|decvax|seismo}!rochester!ur-univax!pier