kbhit doesn`t work in terminal

Answered

Windows11 Clion2022.1

In the code below, when I input keyboard in terminal, the process keeps in kbhit loop until I hit enter.It`s wrong.

1 comment
Comment actions Permalink

Hello!

You can try enabling the "Run in external console" option in your run/debug configuration (Run | Edit Configurations...).

0

Please sign in to leave a comment.