<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1491886703938_2622">Hi all,</div><div id="yui_3_16_0_ym19_1_1491886703938_2622"><br></div><div id="yui_3_16_0_ym19_1_1491886703938_2622" dir="ltr">I'd like to know how to detect key pressed event on Linux console app using Swift. Not just waiting input like what readLine() is doing, but more like detecting arrow keys, left/right shift key, F1-10 keys, etc simultaneously while the program keep running. You know, something like game input.</div><div id="yui_3_16_0_ym19_1_1491886703938_2622" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1491886703938_2622" dir="ltr">Thank you.</div><div id="yui_3_16_0_ym19_1_1491886703938_2622"><br></div><div id="yui_3_16_0_ym19_1_1491886703938_2622">Regards,</div><div class="signature" id="yui_3_16_0_ym19_1_1491886703938_2619"><div id="yui_3_16_0_ym19_1_1491886703938_2620"><br></div>–Mr Bee<div id="yui_3_16_0_ym19_1_1491886703938_2618"><br></div></div></div></body></html>