pythonのcursesライブラリでメソッドgetchを使うとキーボードから入力を受け取れる。戻り値はキャラクタコード。 ch = stdscr.getch() Cの文字リテラルであれば、コンパイラ側ではキャラクタコードで扱ってくれるが、pythonではシングルクォーテーションでくくって ...
More than a few times, I've had liked to just write getch() instead of raw_input(). This is the missing cross-platform functionality you've been looking for.
Goal: get single key without pressing enter key, then map the key to something else python getch library can get single char without enter key pressed. But for home/pg up/left etc., it's hard to use.
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する