Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Color added to Dos

I know color can be added to Dos, but how? I just want to add it to my find
command...just for fun.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Color added to Dos

Do you mean this (c:\Help color):

Sets the default console foreground and background colors.

COLOR [attr]

attr Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:

0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White

If no argument is given, this command restores the color to what it was
when CMD.EXE started. This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry
value.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.

Example: "COLOR fc" produces light red on bright white


"denny" wrote:

I know color can be added to Dos, but how? I just want to add it to my find
command...just for fun.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Color added to Dos

For me when I type (c:\Help color), it just says Bad command or file name. I
have Win 98. Do some DOS versions not have it. It is not in the directory.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Color added to Dos

I found a suitable answer, if anyone else wants to know. You have to put
this in your config.sys file. DEVICE=C:\windows\command\ANSI.SYS
The sequence used is $e[xx;yy;zzm xx=attribute code, yy=foreground color,
and zz=background color. An example is prompt $e[1;31;44m$p$g$e[1;33;44m

I used this one successfully--prompt $e[5;30;47m$p$g To SEARCH: Type F and
one search word____$e[1;30;44m
cls
It seemed to have to be run twice though to make the whole screen blue ????



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Color fill cells to be added into totals hoolieo Excel Worksheet Functions 1 October 24th 07 07:03 AM
Fill Color is added to additional rows Historian Excel Discussion (Misc queries) 2 June 25th 07 08:47 PM
Added value to cell bbc1 Excel Discussion (Misc queries) 3 October 22nd 05 03:01 AM
Excel gridlines disappear when color is added nelson1344 Excel Discussion (Misc queries) 2 March 15th 05 12:37 AM
Calculating VAT (value added tax) Rod Hutton Excel Worksheet Functions 2 December 10th 04 07:34 PM


All times are GMT +1. The time now is 12:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"