Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linuxでncursesライブラリを使用してCアプリケーションを開発しています。私のプログラムは、AltキーとEscキーの押下を区別できません。両方とも27を返します!2つを区別する方法を教えていただけますか?ありがとうございました
^[さらに文字が入ってくるかどうかを確認するために、 の後に短い遅延を組み込む必要があります。そうでない場合は、Esc押されています。
^[
Take a look here:
NCurses and ESC,ALT keys
Can't try it right now, though. Hope it helps.