microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.42k stars 233 forks source link

how to check when execution has been completed #668

Open deflexable opened 4 months ago

deflexable commented 4 months ago

Environment details

Issue description

is there a method to check when an execution completes after a command was written, for example:

ptyInstance.write('echo test', () => {
      // execution has been completed
  })