Mail Archives: djgpp/1996/09/20/16:53:01
On Mon, 16 Sep 1996 13:20:53 GMT, weiqigao AT crl DOT com (Weiqi Gao) wrote:
>"Maan M. Hamze" <mmhamze AT mail DOT utexas DOT edu> wrote:
>>mwallace AT skyler DOT wiltel DOT com wrote:
>>>
>>> Cool.
>>>
>>> Would someone rewrite DOS's dir function to provide a
>>> color directory listing, one where directories are one
>>> color and filenamess are a different color. :)
>>>
>>> Mike
>>could someone just throw DOS away, and let us all move to Linux and be
>>done with it :)
>>Just a thought!
>The thought behind the Free DOS is exactly that: you can now throw
>your MS DOS away, and buy Linux---Linux (at least Caldera) will
>include a free DOS that allows you to run all your old DOS programs in
>a Linux dosemu session (which will get a big boost when the DOS source
>is made public.)
Very interesting thread. See below my first attempt at a vanilla-flavored
DOS batch program that will give you subdirectories in one color (pink) and
files in another (green). It requires ANSI.SYS.
The funny looking characters are, of course, the ESC character.
@echo off
echo [1;31;40m
dir /ad %1
echo [0m
pause
echo [1;32;40m
dir /a-d %1
echo [0m
- Raw text -