Usage - Description - Example - Options - Limitations
acho [log logfile] [option] arg [...]
acho writes, to standard output, arg ... with the following args replaced by ANSI codes:
| 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 does not print a space between args.
If you don't specify logfile, acho writes error messages to
standard error.
The command:
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.
-n : Don't print newline after last arg.
-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.
acho requires a colour display.
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