Re: console display commands
- Posted by DerekParnell (admin) Feb 21, 2015
- 1514 views
katsmeow said...
Two short questions:
How do i underline a char in a text i puts() to the screen? And then un-underline it?
How do i get rid of the default console cursor?
Kat
Sorry Kat, but with the more recent editions of CMD.exe from Microsoft, this is not an easy thing to do any more.
If you are writing an application for your own usage, I suggest you look into a CMD.exe replacement that supports ANSI control codes.
If you are writing an application for unknown Windows environments, you might be better to use the Windows API to simulate a 'console' output window. You can have complete control of what happens then.
For Linux environments, you can probably still get ANSI control codes to work for you, but I'm just guessing with that.