to the config.sys file for both, re-booted, with no success in displaying color in the CMD console
window.
I suppose it is common knowledge that Windows 7 does not support ansi.sys, but my
question (probably unanserable) is, why is the ansi.sys file there? What genius
decided to include a non-supported file in the Windows 7 system32 folder?
What do you recommend? I am working with escape sequences as a color "add-on"
for my pure batch borders & boxes project. I want to see the colors with Windows 7 as
I do on the Windows 10 PC.
Thanks.
Code: Select all
@echo off
setlocal
for /F %%a in ('echo prompt $E^| cmd') do set "ESC=%%a"
set "reset=%ESC%[0m"
set "Red=%ESC%[31m"
set "Green=%ESC%[32m"
echo %Red% red %Green% green %reset%
exit /b
e[31m red e[32m green e[0m