Wednesday, 15 July 2015

pipe - Check if STDIN or STDOUT is a TTY in Lua -


In C you have isatty (file_descriptor) and you want to be a file descriptor for STDIN You can pass 0 and 1 for STDOT.

How can I say that in Lua

i know anything No, but you can always come out for a test with [ or tty (clearly non portable to some extent) if you do not want to

  • P> Maybe there are others too.


    No comments:

    Post a Comment