Capturing a keystroke in C++

后端 未结 4 1865
星月不相逢
星月不相逢 2020-12-18 13:54

I have been doing some reading, and I see that I can use getch() to get a keystroke. What I have seen is that this is considered bad practice, however I have seen conflicti

4条回答
  •  失恋的感觉
    2020-12-18 14:09

    On Windows you can use pdcurses: http://pdcurses.sourceforge.net/, that is compatible with ncurses.

提交回复
热议问题