Skip to content

Conversation

ysc3839
Copy link

@ysc3839 ysc3839 commented Oct 22, 2024

This PR add a pty.handoff({ input, output, signal, ref, server, client }); function.
To allow passing handoff handles and get a ITerminal interface.

This function need to use with https://github.com/ysc3839/node-terminal-handoff
The usage is:

const pty = require('node-pty');
const handoff = require('terminal-handoff');

handoff.register(/*clsid=*/'{E12CFF52-A866-4C77-9A90-F570A7AA2C6B}', /*callback=*/function (input, output, signal, ref, server, client) {
  const handoffHandles = { input, output, signal, ref, server, client };
  const pty = pty.handoff(handoffHandles);
}, /*once=*/false);

Old PR is #716.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant