Closed NuSkooler closed 8 years ago
Sorry for the late response @NuSkooler . I think this can be solved by adding the missing this._internalee = new EventEmitter;
into the Terminal contructor on pty_win.js.
I can't reproduce this issue so if you can check if that solves the problem would be great :+1:
@iiegor This does appear to fix the crash. You'll need to bring in EventEmitter
as well of course:
var EventEmitter = require('events').EventEmitter;
I'm not sure if it's related at all, but on Windows, I do not get the close
event. I do however, get the exit
event. Is this expected? If so I can work around that I'm sure.
My updated usage of the code is here: https://github.com/NuSkooler/enigma-bbs/blob/master/core/door.js (when the code path is using "stdio")
@NuSkooler Fixed. Regarding the close/exit event issue, try with the latest release.
Code that is functioning in Linux crashes on Windows with the stack trace below.
The relevant code causing this: