Closed Zibri closed 2 years ago
I use: mycmd=pty.spawn("cmd.exe", [], { name: 'xterm-color', cols: 80, rows: 25, env: process.env });
if I then exit cmd.exe the event mycmd.on('close', ()=>console.log("exited"))
does not fire. why?
how to cathe cmd exit? on linux the same code, running bash works.
nevermind... on('exit' works.. then I wonder what is the difference between onclose and onexit.
duplicate of https://github.com/microsoft/node-pty/issues/369
Environment details
Issue description
I use: mycmd=pty.spawn("cmd.exe", [], { name: 'xterm-color', cols: 80, rows: 25, env: process.env });
if I then exit cmd.exe the event mycmd.on('close', ()=>console.log("exited"))
does not fire. why?
how to cathe cmd exit? on linux the same code, running bash works.