Please enable JavaScript to view this site.

A-Shell Reference

Tab(-2,x) is not an extension and is implemented very much as under AMOS, although most AMOS applications were monochrome and thus you may not be familiar with this command. Set the foreground color to x, where x normally ranges from zero to seven (0=black, 1=white, 2=blue, 3=magenta, 4=red, 5=yellow, 6=green, 7=cyan). You can also specify color values from 8 to 15 but these are equivalent to the "dim" versions of colors 0-7. (It is actually possible to define these all independently, either in A-Shell/Windows or in most color terminal emulators, so that "dim" may be a misnomer. But from a programming standpoint, Tab(-2,x);Tab(-1,11) is equivalent to Tab(-2,x+8). Color values beyond 15 are mapped to the modulo-8 equivalent. Note that color is a "mode" attribute, meaning that it takes up no space on the screen and it stays in effect chronologically (rather than spatially) until overridden by another color.