mac: pty support not working
paul-marechal opened this issue · 0 comments
Related: #97 (comment)
Tried building on Mac, and there are some issues with the calls made to open a pseudo-terminal. The build process also outputs some warnings, and we get runtime errors when calling the native functions from node.
The issue has to do with the tcgetattr
call that fails with Inappropriate ioctl for device
, even though when using isatty
it returns 1
.
When skipping the whole termios cfmakeraw
it fails in the JS code that wraps the fd in a net.Socket
object.
I tried properly wrapping it by creating read/write streams using the fs
module: it removes the runtime errors, but the tests still fail.
I also tried replacing ptsname_r
by ttyname_r
as suggested by @thegecko, it removes the compilation warnings but we still get runtime errors.
It may require some more knowledge about ttys on OSX, as I am left just trying anything and everything only to eventually fail. I might pick this up again in the future, no guarantees.