- Getting Started: Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and adhere to our posting rules.
- C / C Text color in Dev-C – How do change color of text in Dev C. July 16, 2013 nguyenvanquan7826 EN C. Designed by Distance Learning - Powered by WordPress.
- Function textcolor is used to change the color of drawing text in C programsTurbo C compiler only. Declaration: void textcolor(int color); where color is an integer variable. For example, 0 means BLACK color, 1 means BLUE, 2 means GREEN and soon. You can also use write appropriate color instead of integer.
- I tried textbackground and textcolor they didn't work, searched the forum, nothing so, anyone know how to change colors, thankx.
- Function textcolor is used to change the color of drawing text in C programsTurbo C compiler only. Declaration: void textcolor(int color); where color is an integer variable. For example, 0 means BLACK color, 1 means BLUE, 2 means GREEN and soon. You can also use write appropriate color instead of integer.
Sep 26, 2009 Hi.! Following The steps For Change the Style, color and size of Text In DevCpp. Click this option 'tool' in Menu Bar the Go to 'Editor option' Then A Window Bar open then Go to Second option 'FONTS'.
Function textcolor is used to change the color of drawing text in C programsTurbo C compiler only.
Declaration: void textcolor(int color);
where color is an integer variable. For example, 0 means BLACK color, 1 means BLUE, 2 means GREEN and soon. You can also use write appropriate color instead of integer. For example,you can write textcolor(YELLOW); to change text color to YELLOW. But use colors in capital letters only.
where color is an integer variable. For example, 0 means BLACK color, 1 means BLUE, 2 means GREEN and soon. You can also use write appropriate color instead of integer. For example,you can write textcolor(YELLOW); to change text color to YELLOW. But use colors in capital letters only.
C programming code to change text color
#include<stdio.h>#include<conio.h>
main()
{
textcolor(RED);
cprintf('C programming');
{
textcolor(RED);
cprintf('C programming');
getch();
return0;
}
return0;
}
C programming code for blinking text
#include<stdio.h>#include<conio.h>
main()
{
textcolor(MAGENTA+BLINK);
cprintf('C programming');
{
textcolor(MAGENTA+BLINK);
cprintf('C programming');
Change Text Color Html
getch();
return0;
}
return0;
}
Change Text Color To Green
Note that we have used cprintf function instead of printf. This is because cprintf send formatted output to text window on screen and printf sends it to stdin. C++ color change.