I would like to suggest a v. small change to lua.c for Win32 users #ifdef WIN32 #include <io.h> /* unistd.h */ #include <fcntl.h> #undef stdin_is_tty #define stdin_is_tty() isatty(_fileno(stdin)) #endif David B