We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
nevermind... on('exit' works.. then I wonder what is the difference between onclose and onexit.
Sorry, something went wrong.
duplicate of #369
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: