arg | ANSI code for |
---|---|
.normal .n | normal display |
.high .hi | high intensity |
.rev | reverse video |
.fg=bla | black foreground |
.fg=red | red foreground |
.fg=gre | green foreground |
.fg=yel | yellow foreground |
.fg=blu | blue foreground |
.fg=mag | magenta foreground |
.fg=cya | cyan foreground |
.fg=whi | white foreground |
.bg=bla | black background |
.bg=red | red background |
.bg=gre | green background |
.bg=yel | yellow background |
.bg=blu | blue background |
.bg=mag | magenta background |
.bg=cya | cyan background |
.bg=whi | white background |
acho .bg=whi .fg=red "hello world" .n
prints the one-line message "hello world" to the screen in red on white and then resets the display to normal.
-v : Print version banner and usage info to standard error (or logfile, if given), then exit.
No other options are recognized. Unrecognized options are printed.
The ANSI.SYS driver must be loaded. If not already present, add the following line to your "config.sys" file:
DEVICE=C:\DOS\ANSI.SYS