Normally this is done by SetConsoleTextAttribute() and then writting text. But it is possible to change line colors after text has been written to the line ?
At least if memory serves, WriteConsoleOutputAttribute can do that.
Edit: ...or, if you want a block all set to the same attribute, you can use FillConsoleOutputAttribute.
No, but you can set the cursor back up to that line, change color, rewrite the text, then jump back to where the cursor was before the jump to rewrite.
I'm not an expert c++ programmer (despite wearing my "Hello World!" t shirt today ☺), so I can't give you any help...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With