+ 2

How to change the color of text in c++

I am using Android based compiler

22nd Jun 2017, 12:45 AM
kapil
kapil - avatar
8 Answers
+ 10
Martins suggestion: ^ ncurses is probably the best option if you want crossplatform support.
22nd Jun 2017, 1:23 AM
jay
jay - avatar
+ 6
Ben Ryves provides a good tutorial on using windows.h link to his site is in the code example from his website https://code.sololearn.com/c4JyOS6fwjiA/?ref=app
22nd Jun 2017, 1:17 AM
jay
jay - avatar
+ 4
no pc only
22nd Jun 2017, 4:23 PM
jay
jay - avatar
+ 4
yeah... no way.
22nd Jun 2017, 4:28 PM
jay
jay - avatar
+ 3
There aren't any libraries for the console that come with the standard libraries. You would have to link to graphics libraries like SDL, for example to do that. There might be some console API with the windows.h header that you would have to learn how to use. Just google windows.h and the first search result should be a microsoft website on how to use the library.
22nd Jun 2017, 12:52 AM
Zeke Williams
Zeke Williams - avatar
+ 3
If you're using CppDroid, you may not have access to ncurses, so you'll have to download it. BTW the not cross-platform and just doing the thing Linux methods I shared in the question Martin posted do work in CppDroid and C4Droid...
22nd Jun 2017, 4:20 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 3
@jay He mentioned Android Based Compiler, and so I got confused 😅
22nd Jun 2017, 4:24 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar