_gettextcolor

Description

Gets the current text color.

#include <graph.h>

short __far _gettextcolor( void );

Remarks

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.

Return Value

The _gettextcolor function returns the color index of the current text color.

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_getvideoconfig, _outmem, _outtext, _remappalette, _selectpalette, _setcolor, _settextcolor

Example

See the example for _gettextposition.