Skip to content

Commit 4c5c671

Browse files
authored
Merge pull request #868 from microsoft/anthonykim1/removeWinPty
Remove support for winpty
2 parents ac22bd8 + b4bbaca commit 4c5c671

File tree

194 files changed

+80
-24769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+80
-24769
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ This is useful for:
99
- Writing a terminal emulator (eg. via [xterm.js](https://github.com/sourcelair/xterm.js)).
1010
- Getting certain programs to *think* you're a terminal, such as when you need a program to send you control sequences.
1111

12-
`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.
12+
`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+.
13+
14+
> **Note:** Support for the `winpty` library has been removed. Windows 10 version 1809 (build 18309) or later is now required.
1315
1416
## API
1517

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

153-
### ConnectNamedPipe failed: Windows error 232
154-
155-
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`
156-
157155
## pty.js
158156

159157
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.

binding.gyp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,6 @@
4848
'sources' : [
4949
'src/win/conpty_console_list.cc'
5050
],
51-
},
52-
{
53-
'target_name': 'pty',
54-
'include_dirs' : [
55-
'<!(node -p "require(\'node-addon-api\').include_dir")',
56-
'deps/winpty/src/include',
57-
],
58-
# Disabled due to winpty
59-
'msvs_disabled_warnings': [ 4506, 4530 ],
60-
'dependencies' : [
61-
'deps/winpty/src/winpty.gyp:winpty-agent',
62-
'deps/winpty/src/winpty.gyp:winpty',
63-
],
64-
'sources' : [
65-
'src/win/winpty.cc',
66-
'src/win/path_util.cc'
67-
],
68-
'libraries': [
69-
'-lshlwapi'
70-
],
7151
}
7252
]
7353
}, { # OS!="win"

deps/winpty/.drone.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

deps/winpty/.gitattributes

Lines changed: 0 additions & 19 deletions
This file was deleted.

deps/winpty/.gitignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

deps/winpty/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

deps/winpty/Makefile

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)