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.

2 comments
Comment actions Permalink

Hello!

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

1
Comment actions Permalink

"Run in external console" , it works! Good!

0

Please sign in to leave a comment.