I'm trying to set a win32 console application's font color to a specific RGB value like 50, 75, 90 respectively. I've already tried SetConsoleTextAttribute()
, but unfortunately it seems to be limited to 0 or 255 for R, G, or B.
This has to be possible, because in the command prompt properties window you can set the specific color, like so
![http://www.yourgamercard.net/screen/i/4a8c57.png](https://i.stack.imgur.com/iq7Ys.png)
I've searched quite a bit but it seems that the only answer is SetConsoleTextAttribute()
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…