Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
95cd791
Remove support for winpty
anthonykim1 Jan 12, 2026
4b3d80c
Remove winpty.cc , references in native.d.ts
anthonykim1 Jan 12, 2026
51d8bd8
Remove winpty from windowsPtyAgent.ts
anthonykim1 Jan 12, 2026
7ff95d5
Remove useConpty as that's default now
anthonykim1 Jan 12, 2026
de1b147
index.js, post-install.js, spam-close.js
anthonykim1 Jan 12, 2026
7e57c14
README.md winpty support removed note
anthonykim1 Jan 12, 2026
259adaa
Remove dep\winpty
anthonykim1 Jan 12, 2026
44735eb
Remove useConpty from test.ts since we got rid of it
anthonykim1 Jan 12, 2026
cbe04b1
See if import were problem for pty.node (old winpty binding)
anthonykim1 Jan 12, 2026
438717f
More conditional unixTerminal file import
anthonykim1 Jan 12, 2026
f0783e9
See if unixTerminal as UnixTerminalType would help
anthonykim1 Jan 12, 2026
2a61910
Stop messing with UnixTerminal camelCase
anthonykim1 Jan 12, 2026
f746e6c
We dont want to fall back to winpty
anthonykim1 Jan 13, 2026
af233e9
Update src/win/conpty.cc
anthonykim1 Jan 13, 2026
5e14350
Update src/win/conpty.cc
anthonykim1 Jan 13, 2026
c6a41fc
Only add back interface of useConpty + deprecation message
anthonykim1 Jan 13, 2026
95be1ed
Merge branch 'anthonykim1/removeWinPty' of github.com:microsoft/node-…
anthonykim1 Jan 13, 2026
9115e8b
Update typings/node-pty.d.ts
anthonykim1 Jan 13, 2026
f397d03
Delete emulation in winpty is deprecated
anthonykim1 Jan 13, 2026
5850ab9
Merge branch 'anthonykim1/removeWinPty' of github.com:microsoft/node-…
anthonykim1 Jan 13, 2026
0c2944b
See if we can remove conditional check for UnixTerminal
anthonykim1 Jan 13, 2026
5f167a2
Try doing the conditional import again on UnixTerminal.test.ts
anthonykim1 Jan 13, 2026
b97e912
Trigger CI rebuild
anthonykim1 Jan 13, 2026
54769eb
Merge branch 'main' into anthonykim1/removeWinPty
anthonykim1 Jan 13, 2026
2487092
Update UnixTerminal import comments and check constraint
anthonykim1 Jan 13, 2026
131e847
UnixTerminalType
anthonykim1 Jan 13, 2026
00296cf
Fix promise handling in poll functions to avoid test timeout
anthonykim1 Jan 13, 2026
a73b5c4
Fix Unix test: setTimeout await bug and add proper timeout
anthonykim1 Jan 13, 2026
b4bbaca
try only keepign catch done()
anthonykim1 Jan 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ This is useful for:
- Writing a terminal emulator (eg. via [xterm.js](https://github.com/sourcelair/xterm.js)).
- Getting certain programs to *think* you're a terminal, such as when you need a program to send you control sequences.

`node-pty` supports Linux, macOS and Windows. Windows support is possible by utilizing the [Windows conpty API](https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/) on Windows 1809+ and the [winpty](https://github.com/rprichard/winpty) library in older version.
`node-pty` supports Linux, macOS and Windows. Windows support is possible by utilizing the [Windows conpty API](https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/) on Windows 1809+.

> **Note:** Support for the `winpty` library has been removed. Windows 10 version 1809 (build 18309) or later is now required.
## API

Expand Down Expand Up @@ -150,10 +152,6 @@ By default `PAUSE` and `RESUME` are XON/XOFF control codes (as shown above). To
This happens when PowerShell is launched with no `SystemRoot` environment variable present.

### ConnectNamedPipe failed: Windows error 232

This error can occur due to anti-virus software intercepting winpty from creating a pty. To workaround this you can exclude this file from your anti-virus scanning `node-pty\build\Release\winpty-agent.exe`

## pty.js

This project is forked from [chjj/pty.js](https://github.com/chjj/pty.js) with the primary goals being to provide better support for later Node.js versions and Windows.
Expand Down
20 changes: 0 additions & 20 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,6 @@
'sources' : [
'src/win/conpty_console_list.cc'
],
},
{
'target_name': 'pty',
'include_dirs' : [
'<!(node -p "require(\'node-addon-api\').include_dir")',
'deps/winpty/src/include',
],
# Disabled due to winpty
'msvs_disabled_warnings': [ 4506, 4530 ],
'dependencies' : [
'deps/winpty/src/winpty.gyp:winpty-agent',
'deps/winpty/src/winpty.gyp:winpty',
],
'sources' : [
'src/win/winpty.cc',
'src/win/path_util.cc'
],
'libraries': [
'-lshlwapi'
],
}
]
}, { # OS!="win"
Expand Down
17 changes: 0 additions & 17 deletions deps/winpty/.drone.yml

This file was deleted.

19 changes: 0 additions & 19 deletions deps/winpty/.gitattributes

This file was deleted.

15 changes: 0 additions & 15 deletions deps/winpty/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions deps/winpty/LICENSE

This file was deleted.

166 changes: 0 additions & 166 deletions deps/winpty/Makefile

This file was deleted.

Loading