0

I am making a text based Tetris game in C++, to handle the key presses I am making use of the ncurses library function kbhit(). However, the library does not work well with the standard I/O like std::cout.

I only require the kbhit() function, is it possible to use this function along with the standard I/O ?

Edit 1: on using ncurses and std::cout together, I get an output like this enter image description here

Without ncurses

enter image description here

Edit 2: My question is how to use the standard I/O alongside ncurses and not how to use kbhit() and getch()

CaptainDaVinci
  • 975
  • 7
  • 23

0 Answers0