User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:textbackground

textbackground

description of textbackground

change of current background color in text mode

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 )
{
   textbackground(RED);
 
   cprintf("and the answer is 42 with a red background.");
 
   getch();
   return 0;
}

output of textbackground c example

  and the answer is 42 with a red background

textbackground example output in cmd

advertising
c/conio.h/textbackground.txt · Last modified: 2014/10/31 19:26 by Daniel Gohlke

Impressum Datenschutz