Text Mode Graphics Function in C

A text mode with a specific number of characters can be set. There are some following commonly used text modes:
textmode() Function: It is used to set the numbers of rows and columns on the monitor screen. It has the following form:

textmode(m);   // where m is an integer referring the mode.

textbackground() Function: It is used to set the background colour in the text mode. It has the following form:

textbackground(n);  // where n is an integer referring the background color mode.

textcolor() Function: This function is used to set the color for the text going to be displayed. It has the following form:

textcolor(n);  // where n is an integer referring the text color.

gotoxy() Function: This function is used to move the cursor to any specific location on the screen. It has the following form:

gotoxy(x,y);

cputs() Function: It is used to display a text message in the monitor screen in the graphics mode. It has the following form:

cputs("Text Message");