C Programming Tutorial Change Console Background and Font Color

preview_player
Показать описание
in this tutorial you will see how to change the console background and font color with help of C programming. Here we use a function called system() and inside it we right color codes.After using this you will surely change the console color with C Programming. Below are the color codes for changing the color.

0 = Black
1 = Blue
2 = Green
3 = Aqua
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Light Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White

I Hope you Liked the Video and have successfully changed the console Color. Enjoy!
Рекомендации по теме
Комментарии
Автор

I am really thankful to you I was so tensed and trying to change the color from 30min with different coded but you described it in a so easiest way realy thanks bhiya

kunalupadhyay
Автор

thanks man your such a great help! thank you for helping me in making my big operating system, just changing the background helped me so much, Good work!

whispymagma
Автор

Thanks :) It really helps me for changing my font color in my Final Project in CProg :)

daniellealabado
Автор

It was helpful.
So easily described .
Thanks

mdtanbeerjubaer
Автор

It worked nicely and thanks for the support wich u gave us ..

uibanknotes
Автор

Many thank. But if i want to set color only the text background, what function should we use?

YADA
Автор

In between for two lines the color is not applied. What should I do?

RaziyaBanu-smxw
Автор

Because it running previous program but i want to execute new program

SumitSingh-crkr
Автор

Does this still work? I have a C project I am working on and I am trying to change the text color. Can you please assist?

onielcole
Автор

Can I set a background image or it's just colours?

seifadel
Автор

I am getting system should have a prototype (error)

RohitPatidar
Автор

can i change the font style and the size?

kudratarahat
Автор

Sadly in my college lab they deleted windows.h from all computers to avoid virus, Any way to change console background in graphics? I found textbackground() if you use this function three times it will change the console color or just use one time and add clrscr() above it.

tomy
Автор

Hey brother I'm trying to change text color in online compiler, but nothing works🤷‍♂️, please help me 🙏🙏

akshattiwarime
Автор

by color doesnt change.. there are simply bunch of instruction after i compile.. anyone ?

madlife
Автор

what does the system("cls"); line mean?

HGAMES
Автор

doesn't work with microsoft visual studio2019 i guess

patakisteachingstuff