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.
Windows関数GetAsyncKeyState()のLinuxアナログはありますか?または、次を返す非同期関数が存在する可能性があります-キーボードバッファが空かどうか?
ありがとう。
ここでの重要な質問は次のとおりです。X ウィンドウ、ncurses、または stdio? Linux は、Windows ほど単純でもモノリシックでもありません。
stdio (プレーンな古い stdin/stdout テキスト プログラム)fgetc_unlockedの場合は、このトリックを行います。
fgetc_unlocked