| | |
Change text colour in console
![]() |
Hi I was just wondering how you change the text colour of only some of the text in a console when you are using cout to display your text.
I tried using
obviously where X and Y are hex numbers and X sets the background color and Y the foreground (or text) colour, but this isn't very useful since the whole screen just changes the the last set of colours in the code for that particular console display instead of just the selected text changing colour.
I tried using
C++ Syntax (Toggle Plain Text)
system("Color XY");
obviously where X and Y are hex numbers and X sets the background color and Y the foreground (or text) colour, but this isn't very useful since the whole screen just changes the the last set of colours in the code for that particular console display instead of just the selected text changing colour.
Me fail English?
Unpossible
Unpossible
•
•
•
•
Originally Posted by axiss
Hi I was just wondering how you change the text colour of only some of the text in a console when you are using cout to display your text.
![]() |
Similar Threads
- Change text color using visual c++ (C++)
- How to change backround colour in WordXP (Windows Software)
- wxpython labels (Python)
- changing desktop icons text colour (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: postgres server function
- Next Thread: C++ class file that uses an array
| Thread Tools | Search this Thread |
api array based binary bitmap business c++ c/c++ char class classes code coding commentinghelp compile console conversion count decide delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error faq file forms fstream function functions game givemetehcodez graph guess gui hash homeworkhelp homeworkhelper iamthwee ifpug ifstream incrementoperators infinite input int integer java kaizen_duck lib linkedlist linker lnk2019 loop looping loops map math matrix memory multiple news node output pointer problem proficiency program programming project python random read recursion reference rpg savefile string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






