Gets the current text color.
#include <graph.h>
short __far _gettextcolor( void );
The _gettextcolor function returns the color index of the current text color. The text color is set by the _settextcolor function and affects text output with the _outtext and _outmem functions only. The _setcolor function sets the color for font text output using the _outgtext function.
The default is 7 in text modes; it is the highest legal color index of the current palette in graphics modes.
The _gettextcolor function returns the color index of the current text color.
Standards:None
16-Bit:DOS
32-Bit:None
_getvideoconfig, _outmem, _outtext, _remappalette, _selectpalette, _setcolor, _settextcolor
See the example for _gettextposition.