Using Text Colors
SETTEXTCOLORRGB (or SETTEXTCOLOR) and SETBKCOLORRGB (or SETBKCOLOR) set the foreground and background colors for text output. All use a single argument specifying the color value (or color index) for text displayed with OUTTEXT and WRITE. For the color index functions, colors are represented by the range 0-31. Index values in the range of 16-31 access the same colors as those in the range of 0-15.
You can retrieve the current foreground and background color values with GETTEXTCOLORRGB and GETBKCOLORRGB or the color indexes with GETTEXTCOLOR and GETBKCOLOR. Use SETTEXTPOSITION to move the cursor to a particular row and column. OUTTEXT and WRITE print the text at the current cursor location.
For more information on these routines, see the appropriate routines in the Language Reference.
Did you find the information on this page useful?