using input function in C on linux, without pressing enter

后端 未结 2 1021
盖世英雄少女心
盖世英雄少女心 2021-01-27 08:37

I wrote a code on windows, using the function getch() from stdio. The thing is I have to use an input function that does not require pressing enter.

2条回答
  •  情话喂你
    2021-01-27 09:06

    We don't do miracles in Linux. You either use other things besides stdio.h, or go without any equivalent of getch and do depend on Enter being pressed.

提交回复
热议问题