+ 1

Screen Output in c++???

How can i output content to the screen from the user without "them" pressing the enter key,for example once the enters a letter like 'y',all current content on the screen gets cleared and some new output appears without them pressing enter...

25th Oct 2018, 1:18 PM
Mensch
Mensch - avatar
2 odpowiedzi
+ 3
its not possible using c++ standard. and its usually OS specific. you should be able to use getch() from conio.h in windows
25th Oct 2018, 1:31 PM
Taste
Taste - avatar
+ 2
Taste is correct. A curses library would be required on Unix/Linux (technically you could write the escape codes yourself, but why would you do that?).
25th Oct 2018, 7:44 PM
Vlad Serbu
Vlad Serbu - avatar