Search Members Help

» Welcome Guest
[ Log In :: Register ]

Page 1 of 3123>>

[ Track This Topic :: Email This Topic :: Print this topic ]

reply to topic new topic new poll
Topic: Need Help, Debug command.com to edit color of dos< Next Oldest | Next Newest >
 Post Number: 1
gold Search for posts by this member.

Avatar



Group: Members
Posts: 24
Joined: Sep. 2005
PostIcon Posted on: Sep. 15 2005,14:06  Skip to the next post in this topic. Ignore posts   QUOTE

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.
Offline
Top of Page Profile Contact Info 
 Post Number: 2
eureka
Unregistered







PostIcon Posted on: Sep. 15 2005,17:14 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

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 Search for posts by this member.

Avatar



Group: Members
Posts: 24
Joined: Sep. 2005
PostIcon Posted on: Sep. 18 2005,14:23 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

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.
Offline
Top of Page Profile Contact Info 
 Post Number: 4
Tattenbach
Unregistered







PostIcon Posted on: Sep. 19 2005,10:22 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

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







PostIcon Posted on: Sep. 19 2005,10:24 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

sorry ...

where 1<k<255

 Post Number: 6
gold Search for posts by this member.

Avatar



Group: Members
Posts: 24
Joined: Sep. 2005
PostIcon Posted on: Sep. 21 2005,14:54 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

Tattenbach, sorry friend, i don't know c programming..

Iam very much new to these things. Thats why need a detailed help..
Offline
Top of Page Profile Contact Info 
 Post Number: 7
RDPetruska Search for posts by this member.

Avatar



Group: Members
Posts: 11
Joined: Sep. 2005
PostIcon Posted on: Sep. 22 2005,09:38 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

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
Offline
Top of Page Profile Contact Info 
 Post Number: 8
Tattenbach
Unregistered







PostIcon Posted on: Sep. 22 2005,10:46 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

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







PostIcon Posted on: Sep. 27 2005,04:39 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

Sorry for the delay, Gold. I will write to you

 Post Number: 10
Tattenbach
Unregistered







PostIcon Posted on: Sep. 30 2005,10:45 Skip to the previous post in this topic.  Ignore posts   QUOTE

wrote to your e-mail address but got no reply so far.

24 replies since Sep. 15 2005,14:06 < Next Oldest | Next Newest >

[ Track This Topic :: Email This Topic :: Print this topic ]


Page 1 of 3123>>
reply to topic new topic new poll

» Quick Reply Need Help
iB Code Buttons
You are posting as:

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code