|
Post Number: 1
|
gold 

Group: Members
Posts: 24
Joined: Sep. 2005
|
 |
Posted on: Sep. 15 2005,14:06 |
|
 |
Iam using a startup disk created from windows 98. Anyone know how to debug command.com to change foreground color, I want to make the color light green to make it well visible.
I dont know how to use debug or a hex editor. Not experienced on that. So need a detailed help.
I tried to load Ansi.sys and change the color, that worked but Ansi.sys now slows down the display very much.
Found a link on this, http://browser.arachne.cz/archive/v01.n650 (Search for 'color' in the page)
I tried to follow the instructions, but failed because my dos version may be different.
Please someone help me to find a way.
Thanks in Advance.
|
 |
|
|
Post Number: 2
|
eureka
Unregistered
|
 |
Posted on: Sep. 15 2005,17:14 |
|
 |
To gold
A “work around” could bee to use a nice and small (7,63 kb) dos program to generate colours?
Download   A1.zip  (a bunch of dos utilities) from here: http://www.ers.kestar.com.au/download.html#DOS
Extract A1.zip and then use  Fill.com  in Win98-image to get background (and foreground) colour.
Note: You can get a help screen bye starting fill.com in Windows (XP as well).
eureka
|
|
|
|
Post Number: 3
|
gold 

Group: Members
Posts: 24
Joined: Sep. 2005
|
 |
Posted on: Sep. 18 2005,14:23 |
|
 |
eureka, First of all thanks for your reply but there is some problems :
1. When Fill.com is called to change foreground color it changes background color also.
2. When 'cls' is pressed it reloads default foreground color. Same happen when a dos program is called.
3. It is as slow as ansi.sys usage.
I had another link on patching command.com but it is not working for windows 98 startup disk command.com.
http://www.empowermentzone.com/dos5doc.txt (Search for 'color' in the page)
If anyone know please help.
|
 |
|
|
Post Number: 4
|
Tattenbach
Unregistered
|
 |
Posted on: Sep. 19 2005,10:22 |
|
 |
Why don't you write the program in C using the winapi (windows.h)?
HANDLE hConsole; hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole, k);
where 1<k>255
hope that helps
|
|
|
|
Post Number: 5
|
Tattenbach
Unregistered
|
 |
Posted on: Sep. 19 2005,10:24 |
|
 |
sorry ...
where 1<k<255
|
|
|
|
Post Number: 6
|
gold 

Group: Members
Posts: 24
Joined: Sep. 2005
|
 |
Posted on: Sep. 21 2005,14:54 |
|
 |
Tattenbach, sorry friend, i don't know c programming..
Iam very much new to these things. Thats why need a detailed help..
|
 |
|
|
Post Number: 7
|
RDPetruska 

Group: Members
Posts: 11
Joined: Sep. 2005
|
 |
Posted on: Sep. 22 2005,09:38 |
|
 |
Found in DOS help...
1. Add "device=c:\dos\ansi.sys" to your config.sys file (adjust path as necessary) to load ansi.sys.
2. enter "prompt $e[1;32;40m$p$g" at the command line. If you like the colors, you can change to add this into autoexec.bat. (This changes text to bold, text color to green, back color to black.)
Rob
|
 |
|
|
Post Number: 8
|
Tattenbach
Unregistered
|
 |
Posted on: Sep. 22 2005,10:46 |
|
 |
To program this in C is quite easy, you just need a compiler (most are free, like lccwin32). You write the lines that I gave you (and some other lines to include your DOS utilities)
Then you compile and link the program and create your own program (.exe) that will change to the colors of your choice and run your DOS applications (providing they are also in the same HDD - or you provide the path at the moment of compiling). Sounds difficult but it is easy. You can do it also in Quickbasic that's even easier to use but the compiler is not easy to find. I'd love to write the program for you but then how do I send it to you?
The other choices are pre-written utilities as Eureka commented or using ansy (that, by the way, I don't think it really slows down your application).
|
|
|
|
Post Number: 9
|
Tattenbach
Unregistered
|
 |
Posted on: Sep. 27 2005,04:39 |
|
 |
Sorry for the delay, Gold. I will write to you
|
|
|
|
Post Number: 10
|
Tattenbach
Unregistered
|
 |
Posted on: Sep. 30 2005,10:45 |
|
 |
wrote to your e-mail address but got no reply so far.
|
|
|
|
|