[swift-users] how to detect key pressed on linux console app?

Mr Bee pak.lebah at yahoo.com
Tue Apr 11 00:04:34 CDT 2017


Hi all,
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.
Thank you.
Regards,
–Mr Bee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170411/76ef4ba2/attachment.html>


More information about the swift-users mailing list