User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:textcolor

textcolor

void textcolor(int color);

description of textcolor

change the color of drawing text where color is a integer variable

Color Value
BLACK 0
BLUE 1
GREEN 2
CYAN 3
RED 4
MAGENTA 5
BROWN 6
LIGHTGRAY 7
DARKGRAY 8
LIGHTBLUE 9
LIGHTGREEN 10
LIGHTCYAN 11
LIGHTRED 12
LIGHTMAGENTA 13
YELLOW 14
WHITE 15
#include<stdio.h>
#include<conio.h>
 
int main( void )
{
   textcolor(BLUE+BLINK);
   cprintf("textcolor c example with a blue blinking text");
   getch();
   return 0;
}

output of textcolor c example

  textcolor c example with a blue blinking text

advertising
c/conio.h/textcolor.txt · Last modified: 2013/02/09 17:56 by 158.181.88.241

Impressum Datenschutz