[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: is_tty on mingw and msys
- From: rhempel@...
- Date: Wed, 10 May 2006 18:56:29 -0700 (PDT)
> I'm using w2k for development, compiling with mingw in an msys
> Compilation (of lua 5.1) worked fine, as does running it from a standard
> windows command prompt. However, lua.exe produces no output by default
> run from within msys. I traced this down to the lua_stdin_is_tty() macro
> luaconf.h - it would seem that _isatty() always returns 0 when running
> msys. For my own use, I've simply hacked the luaconf.h file to return 1
> here, but perhaps there is a better solution?
I ran into exactly this problem. On MinGW you need to start
Lua like so:
while on Cygwin the standard
works fine. I'm not sure of the best way to handle the situation