Cross-platform for basic terminal inspection
$ luarocks install tty
Small cross-platform Lua bindings for checking whether a file descriptor is a TTY and for reading terminal dimensions.
root