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.

How to change the system color into purple, red, green, yellow, orange, and blue?

+10 votes
asked Oct 18, 2024 by Nicole Laririt (230 points)

2 Answers

0 votes
0 votes
answered Dec 2, 2024 by ???? ???? (220 points)
# Purple
echo -e "\e[35mThis is purple text\e[0m"

# Red
echo -e "\e[31mThis is red text\e[0m"

# Green
echo -e "\e[32mThis is green text\e[0m"

# Yellow
echo -e "\e[33mThis is yellow text\e[0m"

# Orange (not standard, use brown)
echo -e "\e[33;5;208mThis is orange text\e[0m"

# Blue
echo -e "\e[34mThis is blue text\e[0m"
commented Feb 1, 2025 by Spippolo (150 points)
Hi, I'm an Italian student and I was trying to change some colors but in c++ and not in c
commented Mar 1, 2025 by Fuzail Sheriff (160 points)
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...