| | |
Change text colour in console
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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 arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






