console app-c++
Ugh. All these ugly hacks.
The console is not a "screen", it is just an output stream. If you would like to treat it (or something which looks the same, at least) as a screen (where you can reference particular locations, clear everything visible, etc. and not have the window scroll as you continuously append text), then get an appropriate library. [google] 'curses' or 'ncurses' for a start.
The console is not a "screen", it is just an output stream. If you would like to treat it (or something which looks the same, at least) as a screen (where you can reference particular locations, clear everything visible, etc. and not have the window scroll as you continuously append text), then get an appropriate library. [google] 'curses' or 'ncurses' for a start.
after writing the fanciest console snake ever i tried to deal with this too. there is no way but system("cls"). Back buffering and playing with the width height will help the jitteryness if your going for real time console app with graphics
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement