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

Possibility to use raw mode ?

Open Et7f3 opened this issue 1 year ago • 1 comments
trafficstars

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.

Et7f3 avatar Dec 20 '23 17:12 Et7f3

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.

Et7f3 avatar Dec 22 '23 01:12 Et7f3