You are here

textbackground in C

Function textbackground is used to change current background color in text mode. See available colors.

Declaration: void textbackground(int color);

C programming code for textbackground

#include<stdio.h>
#include<conio.h>

main()
{
   textbackground(RED);

   cprintf("C program to change background color.");

   getch();
   return 0;
}