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

  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. main()
  5. {
  6.    textbackground(RED);
  7.  
  8.    cprintf("C program to change background color.");
  9.  
  10.    getch();
  11.    return 0;
  12. }