Hi, I am working on klisp on Windows, and I see that there is a note in ksystem.win32.c saying _isatty() might be a better choice but would need testing.
What kinds of tests are needed to see if it is suitable for implementing ksystem_isatty()?
--
You received this message because you are subscribed to the Google Groups "klisp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klisp+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That's what i imagined. Ideally, isatty should return false on redirect to null, but it's not a major issue. As i said before it's only used in the main interpreter.
The interpreter only checks for input redirection, so the output redirection isn't relevant here.
Oto Havle left the previous code and comment, preferring GetConsoleMode. Any of them would probably work for this simple task, i think.