Hey,
Is it possible to change the text and background colours? or underline the text and stuff like that? I have searched the forums a see it can be done in C++ but can it be done in normal C?
Thanks
Andy
Hey,
Is it possible to change the text and background colours? or underline the text and stuff like that? I have searched the forums a see it can be done in C++ but can it be done in normal C?
Thanks
Andy
C++ has no functions built-in to support text colour, so I don't know what you found for C++. Whether you use C or C++, you need to use a third party library, or send potentially non-portable character sequences to your terminal to control colour.
One way is using ANSI escape codes.
Under a flavour of unix, try ncurses.
You can change the colours by using <conio.h> and <graphics.h>. I know these are non-standard c-headers but provide very cool support.
Try them out and you will got the output that you want.
REALNAPSTER