Skip to content
New issue

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

Add support for conpty terminal handoff #725

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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