It seems like the only way to convince the child process that it is in a TTY is to get it to inherit the parent process' stdio. You can't do this with child_process.exec (whether it is a bug or not) so I have switched to using spawn.
The caveat of this is I can't figure out how to also buffer only the output from the child process in order to pass it to the pliers.exec callback. I have commented that test out, so probably don't merge this if that's a desired feature.
It seems like the only way to convince the child process that it is in a TTY is to get it to inherit the parent process' stdio. You can't do this with
child_process.exec
(whether it is a bug or not) so I have switched to usingspawn
.The caveat of this is I can't figure out how to also buffer only the output from the child process in order to pass it to the
pliers.exec
callback. I have commented that test out, so probably don't merge this if that's a desired feature.