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.

0
2 comments

Hello!

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

1

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

0

Please sign in to leave a comment.