Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What does "[0;31m" means?

I saw this string in many places,but what does it means ?

For example : https://github.com/ibnYusrat/my-linux-setup/blob/master/setup.sh

example in github

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This is a ANSI escape sequence. It’s mainly used to colorize/format your shell’s standard out. Please find a list of valid sequences here.
Regarding the title of this thread –> \033[0;31m start’s to colorize your output red. Please be aware that you must reset your sequence with \033[0m.
See attached an example:
enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading