node-pty icon indicating copy to clipboard operation
node-pty copied to clipboard

How do I gracefully close the terminal?

Open MassMessage opened this issue 2 years ago • 0 comments

Environment details

  • OS: Windows 11
  • OS version:Windows 11 Home Insider Preview Single Language
  • node-pty version: 0.10.1

Issue description

let's say I have a pseudo-terminal (using xterm.js) in my application, connect to a real-terminal (powershell) through node-pty. the user happens to close it (it's inside a tab), so I need to "close" the terminal "connection" with powershell. What's the proper way to do this? call kill()? send exit to the terminal run? regard to cleaning resources, is there anything I do need to release?

MassMessage avatar Jul 12 '22 02:07 MassMessage