Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Why doesn't system("color XY"); work?

+6 votes
asked Nov 16, 2021 by ABRAHAM LUGO (190 points)
every time I try to use system("color XY"); it just says "color not found." and its kinda weird because ive tried it on other compilers and it works just fine.

1 Answer

+1 vote
answered Nov 16, 2021 by Peter Minarik (86,040 points)

color is a Windows command. It does not exist on Unix/Linux operating systems and OnlineGDB runs on some sort of Unix/Linux server.

Check this out to learn how to change the color of your output on a Linux console.

commented Nov 29, 2021 by ABRAHAM LUGO (190 points)
thank you very much
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...