kbhit doesn`t work in terminal

已回答

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

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

请先登录再写评论。