tup
tup copied to clipboard
tup and tty
Since we almost all are running our tests with tup
(that is one of the main advantages of using a build-automation after all), it is extremely frustrating, that even if I run tup
in a TTY, the isatty
function (lives in unistd.h
on POSIX systems; and as _isatty
on MS systems in io.h
) will always give me false
. I bet, this is because of the fact, that tup
has its own buffered output streams, yet it is still a very annoying problem that needs to fixed, so that all our tests would work just fine when they are running via tup
.
Is there any way, to fix/improve this behaviour?
Ninja has a way to indicate a build rule needs the terminal (pool = console
) which makes ninja give the terminal to it, but it is also run in serial against all other console-using rules (and I think all in general). Tup would probably use a flag of some kind.