Long live SF64!
HAH! Here's a sample of what I've been able to do by adding some color to anrichan...

First, I'd like to ask for feedback - any ideas about colors? The default scheme of gray text on black window can be changed as well. Anri-chan's outputs are streamlined through 3 output functions that I listed code for below, out_cls, out_info, out_error, and out_section. Each of those is demonstrated in the picture above.
[hr]
Interestingly, I couldn't get ANSI.COM or ANSI.SYS to work on my machine, so I figured if I'm having this much trouble with it it's not going to be worth troubleshooting on other people's systems as well... So anyway, I used another program called CTEXT.EXE which I found here. Unfortunately, about 100 things carry the name CTEXT, so it's not really a unique enough name...anyway. This screenshot shows its coloring capabilities. While ANSI can completely control the display of the entire command window (using control of cursor position), CTEXT simply modifies the color of whatever you put between it's tags.
CTEXT uses a simple tag system to color text, not unlike HTML or YABB tags. There are plenty of examples below. These are the modifications I made to anri.bat to allow the display above:
Lines 38-46
Lines 1383-1414
As you can see, I used an environment variable to store the full path to CTEXT.exe and then called that variable as %CECHO% throughout anri.bat. I also created the RESET_COLOR variable, which is necessary because CTEXT tends to be "persistent" even though it comes with a {\n} tag that ought to prevent that kind of behavior. To use adifferent default color scheme (text/background) , the "07" used by RESET_COLOR and the COLOR command on lines 45 and 46 can be changed. See Help Color for color codes.
What do you think?
EDIT:
Turns out my first post on coloring the command window had a link to a program that was inspired by the program I used above... and they call theirs CECHO.EXE... so I guess that one might be the better alternative.
http://www.codeproject.com/KB/recipes/BatchFileColors.aspx
Unfortunately you have to setup a login name there to download the demo, but it was a fairly painless name, email, password thing and they didn't even confirm the email. If someone can get ANSI, to work, it's much more powerful, but at the same time, these simple solutions are easy to implement and give anri-chan plenty of flare for a console program.

First, I'd like to ask for feedback - any ideas about colors? The default scheme of gray text on black window can be changed as well. Anri-chan's outputs are streamlined through 3 output functions that I listed code for below, out_cls, out_info, out_error, and out_section. Each of those is demonstrated in the picture above.
[hr]
Interestingly, I couldn't get ANSI.COM or ANSI.SYS to work on my machine, so I figured if I'm having this much trouble with it it's not going to be worth troubleshooting on other people's systems as well... So anyway, I used another program called CTEXT.EXE which I found here. Unfortunately, about 100 things carry the name CTEXT, so it's not really a unique enough name...anyway. This screenshot shows its coloring capabilities. While ANSI can completely control the display of the entire command window (using control of cursor position), CTEXT simply modifies the color of whatever you put between it's tags.
CTEXT uses a simple tag system to color text, not unlike HTML or YABB tags. There are plenty of examples below. These are the modifications I made to anri.bat to allow the display above:
Lines 38-46
Code:
(SET anri_ver=3)
(SET in_anrichan=y)
SET anri_dir=%~dp0
SET anri_path=%~dp0anri.bat
(SET dgmpgdec_dir=dgmpgdec149)
(SET vdub=virtualdub-1.7.6)
(SET CECHO="%anri_dir%\CTEXT.exe")
(SET RESET_COLOR=%CECHO% {07})
COLOR 07Lines 1383-1414
Code:
:out_cls
CLS
ECHO.
%CECHO% "{81}==============================================================================={\n}"
%CECHO% "{80} {8F}metroid 2002 speed demos archive anri-chan %anri_ver%{80} {\n}"
%CECHO% "{80} {8B}http://www.metroid2002.com/{80} {8B}http://speeddemosarchive.com/{80} {\n}"
%CECHO% "{81}==============================================================================={\n}"
ECHO.
%RESET_COLOR%
Goto :EOF
:out_info
%CECHO% "{0F}%*{\n}"
%RESET_COLOR%
REM ECHO.
GOTO :EOF
:out_error
%CECHO% "{CF}[!]{\n}"
%CECHO% "{CF}[!]{0C} %*{\n}"
%CECHO% "{CF}[!]{\n}"
%RESET_COLOR%
ECHO.
GOTO :EOF
:out_section
TITLE Anri-chan %anri_ver% - %*
%CECHO% "{09}-------------------------{\n}"
%CECHO% "{0E}%*{\n}
%CECHO% "{09}-------------------------{\n}"
%RESET_COLOR%
ECHO.
GOTO :EOFAs you can see, I used an environment variable to store the full path to CTEXT.exe and then called that variable as %CECHO% throughout anri.bat. I also created the RESET_COLOR variable, which is necessary because CTEXT tends to be "persistent" even though it comes with a {\n} tag that ought to prevent that kind of behavior. To use adifferent default color scheme (text/background) , the "07" used by RESET_COLOR and the COLOR command on lines 45 and 46 can be changed. See Help Color for color codes.
What do you think?
EDIT:
Turns out my first post on coloring the command window had a link to a program that was inspired by the program I used above... and they call theirs CECHO.EXE... so I guess that one might be the better alternative.
http://www.codeproject.com/KB/recipes/BatchFileColors.aspx
Unfortunately you have to setup a login name there to download the demo, but it was a fairly painless name, email, password thing and they didn't even confirm the email. If someone can get ANSI, to work, it's much more powerful, but at the same time, these simple solutions are easy to implement and give anri-chan plenty of flare for a console program.







