+ 2

How do we make a colourful in python or c++

1st Apr 2018, 12:16 PM
Roshan
Roshan - avatar
4 Answers
+ 1
IN C++: There is no (standard) cross-platform way to do this. On windows, try using conio.h. It has the: textcolor(); // and textbackground(); functions . For example: textcolor(RED); cprintf("H"); textcolor(BLUE); cprintf("e"); // and so on. in python: https://stackoverflow.com/questions/287871/print-in-terminal-with-colors https://stackoverflow.com/questions/37340049/how-do-i-print-colored-output-to-the-terminal-in-python/37340245
1st Apr 2018, 12:20 PM
Baraa AB
Baraa AB - avatar
+ 4
Try SDL2 - C library that can be use for multiple languages https://www.sololearn.com/discuss/498964/?ref=app
1st Apr 2018, 2:39 PM
Manual
Manual - avatar
1st Apr 2018, 12:31 PM
Aaron Eberhardt
Aaron Eberhardt - avatar