Skip to contentSkip to conversation

How to get colorized directory in a dosemu prompt?

DISCUSSION Larry Alkoff 2 participants 5 messages May 22, 2007 – Jul 23, 2007

lore
Share & tools
lore
#0 lore raw

I use 4dos a free command.com emulator which has many more functions than command.com.

It has the ability to display a directory listing in color, similar to what happen with --color=auto in an xterm.

Can anyone help me to get color in an xdosemu terminal?

Larry

Signature · 2 lines
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux
#1 lore raw

-=| Larry Alkoff, Mon, 21 May 2007 21:30:47 -0500 |=-

Quoted 7 lines

I use 4dos a free command.com emulator which has many more functions than command.com.

It has the ability to display a directory listing in color, similar to what happen with --color=auto in an xterm.

Can anyone help me to get color in an xdosemu terminal?

If I remember correctly, you need to load ansi.sys in config.sys so 4dos is able to use colors. Sorry if you already tried that.

Signature · 1 line
dam            JabberID: [email protected]
#2 lore raw
Quoted 11 lines · Damyan Ivanov

-=| Larry Alkoff, Mon, 21 May 2007 21:30:47 -0500 |=-

Quoted 6 lines

I use 4dos a free command.com emulator which has many more functions than command.com.

It has the ability to display a directory listing in color, similar to what happen with --color=auto in an xterm.

Can anyone help me to get color in an xdosemu terminal?

If I remember correctly, you need to load ansi.sys in config.sys so 4dos is able to use colors. Sorry if you already tried that.

Damyan thank you very much. Problem solved.

I had been loading nansi.sys which comes with freedos in config.sys. It was obviously doing something but no color.

Your email prompted me to dig up an old copy of ansi.sys and _that_ worked right off the bat!

I'm so happy to finally have color.

Gratefully,
Larry

Signature · 2 lines
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux
#3 lore raw

Problems solved:

The problem of getting colorized prompts and directory listings under 4dos has been completely solved with nansi 4.0d.

Additionally, I now get black letters on a bright white background with nansi 4.0d using the patch below:

Larry

Signature · 2 lines
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux
#4 lore raw

Larry Alkoff wrote:
Oops I forgot to list the patch.
Here is the whole message:

Problems with nansi and 4dos solved:

The problem of getting colorized prompts and directory listings under 4dos has been completely solved with nansi 4.0d.

Additionally, I now get black letters on a bright white background with nansi 4.0d using the patch below:

c:>debug nansi.sys

Quoted 5 lines

-e 6a2
0...:06A2 7F.ff
-w
Writing 1345 bytes.
-q

Signature · 2 lines
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux