Ms-dos - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 03-08-2004, 07:40 AM   #1 (permalink)
Newb Techie
 
Join Date: Aug 2003
Posts: 22
Send a message via ICQ to Armand-[79th]
Question Ms-dos

Erm.. does anyone know how to change the text colour on DOS?
I'm using Win98SE if thats of any importance... !?!

Oh.. to be specific, I want to make it green.

... without using a 20 year old green screen I have in the loft.
__________________

Armand-[79th] is offline  
Old 03-08-2004, 12:08 PM   #2 (permalink)
Wizard Techie
 
Join Date: Jul 2003
Posts: 3,937
Default

from microsoft:

To change colors of command prompt elements in winxp, maybe similair to win98:
http://www.microsoft.com/windowsxp/h...reencolors.asp

should you need more resources here you can find them. it seems you will have to do a bit of programming:
http://www.google.com/search?hl=en&i...nge+text+color
__________________

ekÆsine is offline  
Old 03-09-2004, 07:09 AM   #3 (permalink)
Newb Techie
 
Join Date: Aug 2003
Posts: 22
Send a message via ICQ to Armand-[79th]
Default

Does work on XP, but you can't get that properties screen on 98..


I've been reading through the .txt files on Win98.
I'm assuming the text colour is determined by ESC codes.. ?!?!
Armand-[79th] is offline  
Old 03-09-2004, 11:11 AM   #4 (permalink)
Him
Wizard Techie
 
Join Date: Jan 2004
Posts: 3,190
Send a message via AIM to Him Send a message via Yahoo to Him
Default

Did you mean ASCII? Thats what you need to do. You can use that and change the colors to anything you want. I use to know how to do it, but I forgot. But, if you use it this way, you cant save it as the color for your command prompt all of the time. If you make a batch file, you can use the ASCII and save it and that will always work in the saved file.
Him is offline  
Old 03-13-2004, 06:59 AM   #5 (permalink)
Super Techie
 
Join Date: Nov 2003
Posts: 415
Default

all i have to do is type color at the command prompt, typing "color 0a" changes mine to green or type "color/?" for the full list. this is basic so i dunno how much u know about dos but hope it helps. ive never played with the properties to change it before i just do that
__________________
Fear is nothing but the anticipation of pain, be it physical, mental, spiritual or emotional.
specs.
Athlon XP 2200+ oc\'ed @ 1.93ghz
MSI ms-6738
768mb ddr2100
Nvidia mx420 :(
60gig maxtor 7200rpm
Dual boot with Mandrake 10.0 and Win XP Pro sp2
neversleeps is offline  
Old 03-13-2004, 11:55 AM   #6 (permalink)
Super Techie
 
Join Date: Dec 2003
Posts: 324
Default

first off, there is no "color" command for dos

you were right when you said you needed to use the ESC command ... hewres the list of attributes for changing dos parameters

Text Format
0 = Default Setting
1 = Bold
4 = Underscored(Monochrome only)
5 = Blinking
8 = Hidden

Text Color
30 = Black
31 = Red
32 = Green
33 = Yellow
34 = Blue
35 = Magenta
36 = Cyan
37 = White
7 = Black Text on White Background

Background Color
40 = Black
41 = Red
42 = Green
43 = Yellow
44 = Blue
45 = Magenta
46 = Cyan
47 = White
7 = Black Text on White Background

for example ... the following command sets a blinking text(5), appears red(31), against a blue background(44)
ESC[5;31;44m
parameter order isnt important, however each parameter must be separated by a semicolon.

One thing, make sure to use the ANSI set graphics mode escape sequence (m) to change screen attributes, it can have as many parameters as you like

Also there are commands for the dos prompt itself. The following command makes the drive and the dir in your prompt bold and blue, and the > becomes bold and red
prompt $e[1;34m$p$e[31m$g$e[0m
sunsider is offline  
Old 03-13-2004, 05:36 PM   #7 (permalink)
Super Techie
 
Join Date: Nov 2003
Posts: 415
Default

what do u think i just made it up? there is on mine sunsider, if u consider microsoft windows emulated version dos, look for yourself
Attached Images
File Type: jpg nissan.jpg (60.3 KB, 280 views)
__________________
Fear is nothing but the anticipation of pain, be it physical, mental, spiritual or emotional.
specs.
Athlon XP 2200+ oc\'ed @ 1.93ghz
MSI ms-6738
768mb ddr2100
Nvidia mx420 :(
60gig maxtor 7200rpm
Dual boot with Mandrake 10.0 and Win XP Pro sp2
neversleeps is offline  
Old 03-17-2004, 01:55 AM   #8 (permalink)
Super Techie
 
Join Date: Dec 2003
Posts: 324
Default

ok neversleeps ....

since he posted it was a win 98se dos issue .. why would an enhanced xp version's commands be a viable option ???

didnt think so :|
sunsider is offline  
Old 03-17-2004, 02:30 AM   #9 (permalink)
Super Techie
 
Join Date: Nov 2003
Posts: 415
Default

first u said there wasnt a color command for dos which i and anybody else would take it to mean there isnt a color command for any version which is incorrect so telling all the other ppl reading this thread that there isnt, is wrong.

second i read his question and helped him the best i could with me having xp and not 98, it does no harm by him trying to use a color command if it isnt there on 98.

third quit bein an ***, i didnt have any negative remarks about ur post so i don see why u need to do it by blatantly saying i am wrong when im not about mine.


didnt think so
__________________
Fear is nothing but the anticipation of pain, be it physical, mental, spiritual or emotional.
specs.
Athlon XP 2200+ oc\'ed @ 1.93ghz
MSI ms-6738
768mb ddr2100
Nvidia mx420 :(
60gig maxtor 7200rpm
Dual boot with Mandrake 10.0 and Win XP Pro sp2
neversleeps is offline  
Old 03-17-2004, 06:29 AM   #10 (permalink)
Techie Beyond Description
 
Apokalipse's Avatar
 
Join Date: Jun 2003
Location: Melbourne, Australia
Posts: 14,559
Default

.
Attached Images
File Type: jpg i hate nav.jpg (71.9 KB, 30 views)
__________________

__________________
Apokalipse is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 12:05 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.