How to get Ctrl, Shift or Alt with getch() ncurses?

后端 未结 7 1459
挽巷
挽巷 2020-12-10 03:11

How to get Ctrl, Shift or Alt with getch() ncurses ?
I cannot get it work to get Ctrl, Shift or

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 03:38

    You can't, there's no extension in any of the major terminal emulators to achieve it.

    If you're assuming an X11 environment you can use X11 functions to retrieve it, but that's a different question altogether.

提交回复
热议问题