$ luarocks install rawterm
RawTerm is a Lua library that allows access to "non-canonical mode" for terminal input. This allows programs to read input from STDIN byte by byte without requiring the user to press <Enter>, and allows for reading characters not normally accessible like the arrow keys and function keys.
Versions
Dependencies
bit32 >= 5.3.5.1
cffi-lua >= 0.2.1
lua >= 5.1