Closed connorskees closed 1 year ago
Microsoft Windows [Version 10.0.19045.2364]
main
0.10.0
When writing \x7f on Windows, the input will always be converted to \x08. It is unclear where this transform is occurring. To reproduce,
\x7f
\x08
// relative to examples/fork/index.js const pty = require('../..'); // reproduces with both cmd.exe and powershell.exe const ptyProcess = pty.spawn('cmd.exe', [], { name: '...', cols: 80, rows: 26, cwd: process.env.USERPROFILE, // reproduces regardless of this value useConpty: true, }); ptyProcess.onData(data => process.stdout.write(data)); ptyProcess.write('python -c "import msvcrt; print(msvcrt.getch())"\r'); ptyProcess.write('\x7f'); process.on('exit', () => ptyProcess.kill()); setTimeout(() => process.exit(), 500);
This issue appears to be independent of the shell and is reproducible using both winpty and conpty.
It would be happening by conpty (https://github.com/microsoft/terminal) or cmd
Environment details
Microsoft Windows [Version 10.0.19045.2364]
main
branch and0.10.0
Issue description
When writing
\x7f
on Windows, the input will always be converted to\x08
. It is unclear where this transform is occurring. To reproduce,This issue appears to be independent of the shell and is reproducible using both winpty and conpty.