Console Color equates

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Console >

Console Color equates

 

Equates used by Console_SetTextAttribute to build console colors:

Symbol

Synbol alias

Meaning

%Console_FOREGROUND_BLUE

%Con_FG_BLUE


%Console_FOREGROUND_GREEN

%Con_FG_GREEN


%Console_FOREGROUND_RED

%Con_FG_RED


%Console_FOREGROUND_INTENSITY

%Con_FG_INTENSITY

%Con_FG_INT





%Console_BACKGROUND_BLUE

%Con_BG_BLUE


%Console_BACKGROUND_GREEN

%Con_BG_GREEN


%Console_BACKGROUND_RED

%Con_BG_RED


%Console_BACKGROUND_INTENSITY

%Con_BG_INTENSITY

%Con_BG_INT


 

To compose a color just OR (use Or keywork or | symbol) one or more equates.

 

For example, to have a Bright Cyan Foreground color over Blue Background color, do something like the following:

 

Long cBrightCyanBGBlue = %Con_FG_BLUE | %Con_FG_GREEN | %Con_FG_INT | %Con_BG_BLUE

 

To have a Bright Red Foreground color over Black Background color, do something like the following:

 

Long cBrightRed = %Con_FG_RED | %Con_FG_INT

 

 

Other color equates that can be used by Console_SetTextAttribute to build console colors: see thinCore Console equates.