Command Prompt for Windows




textcolor

void textcolor(char col);

Set the current text colour to col.

Parameter Description
col Range value, that specifies the colour to set.

Returns

There is no return value.

Comments

The following colours are #defined in the WOIO.H header file :-

/* 
   all external commands should use the following system
   colours instead of the fix colours 
*/

#define COL_FILENAME    (char )144   /* system text colours */
#define COL_HIGHFNAME   (char )145
#define COL_NUMBER      (char )146
#define COL_TEXT        (char )147
#define COL_HIGHTEXT    (char )148
#define COL_BOLDTEXT    (char )149
#define COL_ENVNAME     (char )150
#define COL_ENVSTR      (char )151
#define COL_ERROR       (char )152
#define COL_LHS         (char )153
#define COL_HIGHLHS     (char )154
#define COL_RHS         (char )155
#define COL_FILEDATE    (char )156
#define COL_FILETIME    (char )157
#define COL_FILEATTRIB  (char )158
#define COL_FILEDESC    (char )159

#define BLACK        	(char )128   /* text colours */
#define RED            	(char )129
#define GREEN        	(char )130
#define BLUE        	(char )131
#define YELLOW        	(char )132
#define MAGENTA        	(char )133
#define CYAN        	(char )134
#define WHITE        	(char )135
#define LIGHTGREY       (char )136
#define LIGHTRED        (char )137
#define LIGHTGREEN    	(char )138
#define LIGHTBLUE       (char )139
#define BROWN        	(char )140
#define LIGHTMAGENTA    (char )141
#define LIGHTCYAN       (char )142
#define DARKGREY        (char )143

There are no blinking or bold characters.

See Also

printf