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

Possibility to use raw mode ? #650

Open
Et7f3 opened this issue Dec 20, 2023 · 1 comment
Open

Possibility to use raw mode ? #650

Et7f3 opened this issue Dec 20, 2023 · 1 comment
Labels
feature-request Request for new features or functionality

Comments

@Et7f3
Copy link

Et7f3 commented Dec 20, 2023

Environment details

  • OS: Linux
  • OS version: 5.15.0-82-generic
  • node-pty version: v1.0.0

Issue description

I don't see argument to change initial mode of pty (I have to resort to spawn stty and change the value after pty creation).

What I look for is stty_init in GNU Expect. I am particularly interested in canonical mode and disabling utf8 output conversion (I see the setting for input encoding).

My need is that I want to transform a pty in cooked mode in raw mode so it become like a pipe.

@Tyriar Tyriar added the feature-request Request for new features or functionality label Dec 20, 2023
@Et7f3
Copy link
Author

Et7f3 commented Dec 22, 2023

Sorry for necromancing an old issue but I seem to have a working solution (I posted there) for both windows and one for linux. I have a quick n dirty solution so I don't think I will try to fix it. However it might merit good first issue or hacktoberfest tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants