codexui-android 0.1.92 → 0.1.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cli/index.js +47 -11
- package/dist-cli/index.js.map +1 -1
- package/node_modules/ansi-regex/index.js +4 -0
- package/node_modules/ansi-regex/license +21 -0
- package/node_modules/ansi-regex/package.json +64 -0
- package/node_modules/ansi-regex/readme.md +39 -0
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/README.md +94 -0
- package/node_modules/aproba/index.js +105 -0
- package/node_modules/aproba/package.json +34 -0
- package/node_modules/are-we-there-yet/CHANGES.md +37 -0
- package/node_modules/are-we-there-yet/LICENSE +5 -0
- package/node_modules/are-we-there-yet/README.md +195 -0
- package/node_modules/are-we-there-yet/index.js +4 -0
- package/node_modules/are-we-there-yet/package.json +35 -0
- package/node_modules/are-we-there-yet/tracker-base.js +11 -0
- package/node_modules/are-we-there-yet/tracker-group.js +107 -0
- package/node_modules/are-we-there-yet/tracker-stream.js +36 -0
- package/node_modules/are-we-there-yet/tracker.js +30 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/bl/.travis.yml +17 -0
- package/node_modules/bl/BufferList.js +396 -0
- package/node_modules/bl/LICENSE.md +13 -0
- package/node_modules/bl/README.md +247 -0
- package/node_modules/bl/bl.js +84 -0
- package/node_modules/bl/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/bl/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/bl/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/bl/node_modules/readable-stream/README.md +106 -0
- package/node_modules/bl/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/bl/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/bl/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/package.json +68 -0
- package/node_modules/bl/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/bl/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/bl/package.json +37 -0
- package/node_modules/bl/test/convert.js +21 -0
- package/node_modules/bl/test/indexOf.js +492 -0
- package/node_modules/bl/test/isBufferList.js +32 -0
- package/node_modules/bl/test/test.js +869 -0
- package/node_modules/buffer/AUTHORS.md +70 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +186 -0
- package/node_modules/buffer/index.js +1817 -0
- package/node_modules/buffer/package.json +96 -0
- package/node_modules/chownr/LICENSE +15 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/chownr.js +167 -0
- package/node_modules/chownr/package.json +29 -0
- package/node_modules/code-point-at/index.js +32 -0
- package/node_modules/code-point-at/license +21 -0
- package/node_modules/code-point-at/package.json +38 -0
- package/node_modules/code-point-at/readme.md +32 -0
- package/node_modules/console-control-strings/LICENSE +13 -0
- package/node_modules/console-control-strings/README.md +145 -0
- package/node_modules/console-control-strings/README.md~ +140 -0
- package/node_modules/console-control-strings/index.js +125 -0
- package/node_modules/console-control-strings/package.json +27 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/decompress-response/index.d.ts +29 -0
- package/node_modules/decompress-response/index.js +40 -0
- package/node_modules/decompress-response/license +9 -0
- package/node_modules/decompress-response/package.json +50 -0
- package/node_modules/decompress-response/readme.md +52 -0
- package/node_modules/deep-extend/CHANGELOG.md +46 -0
- package/node_modules/deep-extend/LICENSE +20 -0
- package/node_modules/deep-extend/README.md +91 -0
- package/node_modules/deep-extend/index.js +1 -0
- package/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/node_modules/deep-extend/package.json +62 -0
- package/node_modules/delegates/.npmignore +1 -0
- package/node_modules/delegates/History.md +22 -0
- package/node_modules/delegates/License +20 -0
- package/node_modules/delegates/Makefile +8 -0
- package/node_modules/delegates/Readme.md +94 -0
- package/node_modules/delegates/index.js +121 -0
- package/node_modules/delegates/package.json +13 -0
- package/node_modules/delegates/test/index.js +94 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +96 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/expand-template/.travis.yml +6 -0
- package/node_modules/expand-template/LICENSE +21 -0
- package/node_modules/expand-template/README.md +43 -0
- package/node_modules/expand-template/index.js +26 -0
- package/node_modules/expand-template/package.json +29 -0
- package/node_modules/expand-template/test.js +67 -0
- package/node_modules/fs-constants/LICENSE +21 -0
- package/node_modules/fs-constants/README.md +26 -0
- package/node_modules/fs-constants/browser.js +1 -0
- package/node_modules/fs-constants/index.js +1 -0
- package/node_modules/fs-constants/package.json +19 -0
- package/node_modules/gauge/CHANGELOG.md +160 -0
- package/node_modules/gauge/LICENSE +13 -0
- package/node_modules/gauge/README.md +399 -0
- package/node_modules/gauge/base-theme.js +14 -0
- package/node_modules/gauge/error.js +24 -0
- package/node_modules/gauge/has-color.js +12 -0
- package/node_modules/gauge/index.js +233 -0
- package/node_modules/gauge/package.json +63 -0
- package/node_modules/gauge/plumbing.js +48 -0
- package/node_modules/gauge/process.js +3 -0
- package/node_modules/gauge/progress-bar.js +35 -0
- package/node_modules/gauge/render-template.js +181 -0
- package/node_modules/gauge/set-immediate.js +7 -0
- package/node_modules/gauge/set-interval.js +3 -0
- package/node_modules/gauge/spin.js +5 -0
- package/node_modules/gauge/template-item.js +73 -0
- package/node_modules/gauge/theme-set.js +115 -0
- package/node_modules/gauge/themes.js +54 -0
- package/node_modules/gauge/wide-truncate.js +25 -0
- package/node_modules/github-from-package/.travis.yml +4 -0
- package/node_modules/github-from-package/LICENSE +18 -0
- package/node_modules/github-from-package/example/package.json +8 -0
- package/node_modules/github-from-package/example/url.js +3 -0
- package/node_modules/github-from-package/index.js +17 -0
- package/node_modules/github-from-package/package.json +30 -0
- package/node_modules/github-from-package/readme.markdown +53 -0
- package/node_modules/github-from-package/test/a.json +8 -0
- package/node_modules/github-from-package/test/b.json +5 -0
- package/node_modules/github-from-package/test/c.json +5 -0
- package/node_modules/github-from-package/test/d.json +7 -0
- package/node_modules/github-from-package/test/e.json +5 -0
- package/node_modules/github-from-package/test/url.js +19 -0
- package/node_modules/has-unicode/LICENSE +14 -0
- package/node_modules/has-unicode/README.md +43 -0
- package/node_modules/has-unicode/index.js +16 -0
- package/node_modules/has-unicode/package.json +30 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +206 -0
- package/node_modules/ini/package.json +33 -0
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +45 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/mimic-response/index.d.ts +17 -0
- package/node_modules/mimic-response/index.js +38 -0
- package/node_modules/mimic-response/license +9 -0
- package/node_modules/mimic-response/package.json +42 -0
- package/node_modules/mimic-response/readme.md +57 -0
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +4 -0
- package/node_modules/minimist/index.js +263 -0
- package/node_modules/minimist/package.json +75 -0
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +43 -0
- package/node_modules/minimist/test/default_bool.js +37 -0
- package/node_modules/minimist/test/dotted.js +24 -0
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +33 -0
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +209 -0
- package/node_modules/minimist/test/parse_modified.js +11 -0
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +69 -0
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +10 -0
- package/node_modules/mkdirp-classic/LICENSE +21 -0
- package/node_modules/mkdirp-classic/README.md +18 -0
- package/node_modules/mkdirp-classic/index.js +98 -0
- package/node_modules/mkdirp-classic/package.json +18 -0
- package/node_modules/nan/.github/workflows/ci.yml +52 -0
- package/node_modules/nan/.pre-commit-config.yaml +8 -0
- package/node_modules/nan/CHANGELOG.md +599 -0
- package/node_modules/nan/CMakeLists.txt +138 -0
- package/node_modules/nan/LICENSE.md +9 -0
- package/node_modules/nan/README.md +456 -0
- package/node_modules/nan/doc/asyncworker.md +146 -0
- package/node_modules/nan/doc/buffers.md +54 -0
- package/node_modules/nan/doc/callback.md +76 -0
- package/node_modules/nan/doc/converters.md +41 -0
- package/node_modules/nan/doc/errors.md +226 -0
- package/node_modules/nan/doc/json.md +62 -0
- package/node_modules/nan/doc/maybe_types.md +583 -0
- package/node_modules/nan/doc/methods.md +689 -0
- package/node_modules/nan/doc/new.md +147 -0
- package/node_modules/nan/doc/node_misc.md +123 -0
- package/node_modules/nan/doc/object_wrappers.md +263 -0
- package/node_modules/nan/doc/persistent.md +296 -0
- package/node_modules/nan/doc/scopes.md +73 -0
- package/node_modules/nan/doc/script.md +58 -0
- package/node_modules/nan/doc/string_bytes.md +81 -0
- package/node_modules/nan/doc/v8_internals.md +199 -0
- package/node_modules/nan/doc/v8_misc.md +85 -0
- package/node_modules/nan/include_dirs.js +1 -0
- package/node_modules/nan/nan.h +3202 -0
- package/node_modules/nan/nan_callbacks.h +141 -0
- package/node_modules/nan/nan_callbacks_12_inl.h +690 -0
- package/node_modules/nan/nan_callbacks_pre_12_inl.h +524 -0
- package/node_modules/nan/nan_converters.h +72 -0
- package/node_modules/nan/nan_converters_43_inl.h +68 -0
- package/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
- package/node_modules/nan/nan_define_own_property_helper.h +29 -0
- package/node_modules/nan/nan_implementation_12_inl.h +430 -0
- package/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
- package/node_modules/nan/nan_json.h +166 -0
- package/node_modules/nan/nan_maybe_43_inl.h +360 -0
- package/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
- package/node_modules/nan/nan_new.h +340 -0
- package/node_modules/nan/nan_object_wrap.h +156 -0
- package/node_modules/nan/nan_persistent_12_inl.h +132 -0
- package/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
- package/node_modules/nan/nan_private.h +73 -0
- package/node_modules/nan/nan_scriptorigin.h +97 -0
- package/node_modules/nan/nan_string_bytes.h +305 -0
- package/node_modules/nan/nan_typedarray_contents.h +96 -0
- package/node_modules/nan/nan_weak.h +453 -0
- package/node_modules/nan/package.json +38 -0
- package/node_modules/nan/tools/1to2.js +412 -0
- package/node_modules/nan/tools/README.md +14 -0
- package/node_modules/nan/tools/package.json +19 -0
- package/node_modules/napi-build-utils/LICENSE +21 -0
- package/node_modules/napi-build-utils/README.md +48 -0
- package/node_modules/napi-build-utils/index.js +213 -0
- package/node_modules/napi-build-utils/index.md +81 -0
- package/node_modules/napi-build-utils/package.json +41 -0
- package/node_modules/node-abi/.github/workflows/update-abi.yml +41 -0
- package/node_modules/node-abi/.travis.yml +17 -0
- package/node_modules/node-abi/CODE_OF_CONDUCT.md +73 -0
- package/node_modules/node-abi/CONTRIBUTING.md +53 -0
- package/node_modules/node-abi/LICENSE +21 -0
- package/node_modules/node-abi/README.md +50 -0
- package/node_modules/node-abi/abi_registry.json +144 -0
- package/node_modules/node-abi/index.js +176 -0
- package/node_modules/node-abi/package.json +38 -0
- package/node_modules/node-abi/scripts/update-abi-registry.js +119 -0
- package/node_modules/node-abi/test/index.js +174 -0
- package/node_modules/node-addon-api/LICENSE.md +9 -0
- package/node_modules/node-addon-api/README.md +319 -0
- package/node_modules/node-addon-api/common.gypi +20 -0
- package/node_modules/node-addon-api/except.gypi +25 -0
- package/node_modules/node-addon-api/index.js +12 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
- package/node_modules/node-addon-api/napi-inl.h +6607 -0
- package/node_modules/node-addon-api/napi.h +3201 -0
- package/node_modules/node-addon-api/node_addon_api.gyp +32 -0
- package/node_modules/node-addon-api/node_api.gyp +9 -0
- package/node_modules/node-addon-api/noexcept.gypi +26 -0
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +21 -0
- package/node_modules/node-addon-api/package.json +480 -0
- package/node_modules/node-addon-api/tools/README.md +73 -0
- package/node_modules/node-addon-api/tools/check-napi.js +99 -0
- package/node_modules/node-addon-api/tools/clang-format.js +71 -0
- package/node_modules/node-addon-api/tools/conversion.js +301 -0
- package/node_modules/node-addon-api/tools/eslint-format.js +79 -0
- package/node_modules/node-pty/LICENSE +69 -0
- package/node_modules/node-pty/README.md +165 -0
- package/node_modules/node-pty/binding.gyp +111 -0
- package/node_modules/node-pty/deps/.editorconfig +2 -0
- package/node_modules/node-pty/deps/winpty/.drone.yml +17 -0
- package/node_modules/node-pty/deps/winpty/.gitattributes +19 -0
- package/node_modules/node-pty/deps/winpty/LICENSE +21 -0
- package/node_modules/node-pty/deps/winpty/Makefile +166 -0
- package/node_modules/node-pty/deps/winpty/README.md +151 -0
- package/node_modules/node-pty/deps/winpty/RELEASES.md +280 -0
- package/node_modules/node-pty/deps/winpty/VERSION.txt +1 -0
- package/node_modules/node-pty/deps/winpty/configure +167 -0
- package/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +90 -0
- package/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +53 -0
- package/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +72 -0
- package/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +117 -0
- package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +116 -0
- package/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +113 -0
- package/node_modules/node-pty/deps/winpty/misc/DebugClient.py +42 -0
- package/node_modules/node-pty/deps/winpty/misc/DebugServer.py +63 -0
- package/node_modules/node-pty/deps/winpty/misc/DumpLines.py +5 -0
- package/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +46 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +528 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +633 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +630 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +630 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +630 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +630 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +16 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +4 -0
- package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +144 -0
- package/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +100 -0
- package/node_modules/node-pty/deps/winpty/misc/FormatChar.h +21 -0
- package/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +62 -0
- package/node_modules/node-pty/deps/winpty/misc/GetCh.cc +20 -0
- package/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +41 -0
- package/node_modules/node-pty/deps/winpty/misc/GetFont.cc +261 -0
- package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +51 -0
- package/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +87 -0
- package/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +90 -0
- package/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +34 -0
- package/node_modules/node-pty/deps/winpty/misc/Notes.txt +219 -0
- package/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +27 -0
- package/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +101 -0
- package/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +671 -0
- package/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +151 -0
- package/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +45 -0
- package/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +32 -0
- package/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +10 -0
- package/node_modules/node-pty/deps/winpty/misc/SetFont.cc +145 -0
- package/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +36 -0
- package/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +12 -0
- package/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +40 -0
- package/node_modules/node-pty/deps/winpty/misc/Spew.py +5 -0
- package/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +172 -0
- package/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +102 -0
- package/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +246 -0
- package/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +130 -0
- package/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +89 -0
- package/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +46 -0
- package/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +122 -0
- package/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +56 -0
- package/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +52 -0
- package/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +57 -0
- package/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +30 -0
- package/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +26 -0
- package/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +19 -0
- package/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +46 -0
- package/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +70 -0
- package/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +78 -0
- package/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +44 -0
- package/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +27 -0
- package/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +106 -0
- package/node_modules/node-pty/deps/winpty/misc/build32.sh +9 -0
- package/node_modules/node-pty/deps/winpty/misc/build64.sh +9 -0
- package/node_modules/node-pty/deps/winpty/misc/color-test.sh +212 -0
- package/node_modules/node-pty/deps/winpty/misc/font-notes.txt +300 -0
- package/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +201 -0
- package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +36 -0
- package/node_modules/node-pty/deps/winpty/ship/common_ship.py +53 -0
- package/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +165 -0
- package/node_modules/node-pty/deps/winpty/ship/ship.py +108 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +613 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Agent.h +103 -0
- package/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +84 -0
- package/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +28 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +632 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +28 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +852 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +109 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +121 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +36 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +152 -0
- package/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +41 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Coord.h +87 -0
- package/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +239 -0
- package/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +32 -0
- package/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +422 -0
- package/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +28 -0
- package/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +30 -0
- package/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +99 -0
- package/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +47 -0
- package/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +246 -0
- package/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +114 -0
- package/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +71 -0
- package/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +68 -0
- package/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +378 -0
- package/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +125 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +699 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +103 -0
- package/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +75 -0
- package/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +143 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +535 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +69 -0
- package/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +157 -0
- package/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +189 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +107 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +67 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +193 -0
- package/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +99 -0
- package/node_modules/node-pty/deps/winpty/src/agent/main.cc +114 -0
- package/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +61 -0
- package/node_modules/node-pty/deps/winpty/src/configurations.gypi +60 -0
- package/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +117 -0
- package/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +41 -0
- package/node_modules/node-pty/deps/winpty/src/include/winpty.h +242 -0
- package/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +131 -0
- package/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +75 -0
- package/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +28 -0
- package/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +54 -0
- package/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +72 -0
- package/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +46 -0
- package/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +970 -0
- package/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +38 -0
- package/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +122 -0
- package/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +73 -0
- package/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +103 -0
- package/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +102 -0
- package/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +187 -0
- package/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +38 -0
- package/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +138 -0
- package/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +55 -0
- package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +13 -0
- package/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +54 -0
- package/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +63 -0
- package/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +36 -0
- package/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +45 -0
- package/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +43 -0
- package/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +227 -0
- package/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +114 -0
- package/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +55 -0
- package/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +80 -0
- package/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +63 -0
- package/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +45 -0
- package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +20 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +460 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +104 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +252 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +29 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +55 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +64 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +57 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +43 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +42 -0
- package/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +27 -0
- package/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +99 -0
- package/node_modules/node-pty/deps/winpty/src/subdir.mk +5 -0
- package/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +28 -0
- package/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +158 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +114 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +56 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +80 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +53 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +86 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +31 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +70 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +42 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +729 -0
- package/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +41 -0
- package/node_modules/node-pty/deps/winpty/src/winpty.gyp +234 -0
- package/node_modules/node-pty/deps/winpty/vcbuild.bat +83 -0
- package/node_modules/node-pty/lib/conpty_console_list_agent.js +16 -0
- package/node_modules/node-pty/lib/conpty_console_list_agent.js.map +1 -0
- package/node_modules/node-pty/lib/eventEmitter2.js +47 -0
- package/node_modules/node-pty/lib/eventEmitter2.js.map +1 -0
- package/node_modules/node-pty/lib/eventEmitter2.test.js +30 -0
- package/node_modules/node-pty/lib/eventEmitter2.test.js.map +1 -0
- package/node_modules/node-pty/lib/index.js +52 -0
- package/node_modules/node-pty/lib/index.js.map +1 -0
- package/node_modules/node-pty/lib/interfaces.js +7 -0
- package/node_modules/node-pty/lib/interfaces.js.map +1 -0
- package/node_modules/node-pty/lib/shared/conout.js +11 -0
- package/node_modules/node-pty/lib/shared/conout.js.map +1 -0
- package/node_modules/node-pty/lib/terminal.js +190 -0
- package/node_modules/node-pty/lib/terminal.js.map +1 -0
- package/node_modules/node-pty/lib/terminal.test.js +139 -0
- package/node_modules/node-pty/lib/terminal.test.js.map +1 -0
- package/node_modules/node-pty/lib/testUtils.test.js +28 -0
- package/node_modules/node-pty/lib/testUtils.test.js.map +1 -0
- package/node_modules/node-pty/lib/types.js +7 -0
- package/node_modules/node-pty/lib/types.js.map +1 -0
- package/node_modules/node-pty/lib/unixTerminal.js +346 -0
- package/node_modules/node-pty/lib/unixTerminal.js.map +1 -0
- package/node_modules/node-pty/lib/unixTerminal.test.js +351 -0
- package/node_modules/node-pty/lib/unixTerminal.test.js.map +1 -0
- package/node_modules/node-pty/lib/utils.js +39 -0
- package/node_modules/node-pty/lib/utils.js.map +1 -0
- package/node_modules/node-pty/lib/windowsConoutConnection.js +125 -0
- package/node_modules/node-pty/lib/windowsConoutConnection.js.map +1 -0
- package/node_modules/node-pty/lib/windowsPtyAgent.js +320 -0
- package/node_modules/node-pty/lib/windowsPtyAgent.js.map +1 -0
- package/node_modules/node-pty/lib/windowsPtyAgent.test.js +90 -0
- package/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +1 -0
- package/node_modules/node-pty/lib/windowsTerminal.js +199 -0
- package/node_modules/node-pty/lib/windowsTerminal.js.map +1 -0
- package/node_modules/node-pty/lib/windowsTerminal.test.js +219 -0
- package/node_modules/node-pty/lib/windowsTerminal.test.js.map +1 -0
- package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
- package/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +1 -0
- package/node_modules/node-pty/package.json +64 -0
- package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
- package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
- package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
- package/node_modules/node-pty/scripts/gen-compile-commands.js +8 -0
- package/node_modules/node-pty/scripts/increment-version.js +54 -0
- package/node_modules/node-pty/scripts/post-install.js +80 -0
- package/node_modules/node-pty/scripts/prebuild.js +34 -0
- package/node_modules/node-pty/src/conpty_console_list_agent.ts +15 -0
- package/node_modules/node-pty/src/eventEmitter2.test.ts +30 -0
- package/node_modules/node-pty/src/eventEmitter2.ts +48 -0
- package/node_modules/node-pty/src/index.ts +52 -0
- package/node_modules/node-pty/src/interfaces.ts +130 -0
- package/node_modules/node-pty/src/native.d.ts +54 -0
- package/node_modules/node-pty/src/shared/conout.ts +15 -0
- package/node_modules/node-pty/src/terminal.test.ts +119 -0
- package/node_modules/node-pty/src/terminal.ts +211 -0
- package/node_modules/node-pty/src/testUtils.test.ts +23 -0
- package/node_modules/node-pty/src/tsconfig.json +22 -0
- package/node_modules/node-pty/src/types.ts +15 -0
- package/node_modules/node-pty/src/unix/pty.cc +799 -0
- package/node_modules/node-pty/src/unix/spawn-helper.cc +23 -0
- package/node_modules/node-pty/src/unixTerminal.test.ts +367 -0
- package/node_modules/node-pty/src/unixTerminal.ts +388 -0
- package/node_modules/node-pty/src/utils.ts +29 -0
- package/node_modules/node-pty/src/win/conpty.cc +583 -0
- package/node_modules/node-pty/src/win/conpty.h +41 -0
- package/node_modules/node-pty/src/win/conpty_console_list.cc +44 -0
- package/node_modules/node-pty/src/win/path_util.cc +95 -0
- package/node_modules/node-pty/src/win/path_util.h +26 -0
- package/node_modules/node-pty/src/win/winpty.cc +333 -0
- package/node_modules/node-pty/src/windowsConoutConnection.ts +82 -0
- package/node_modules/node-pty/src/windowsPtyAgent.test.ts +94 -0
- package/node_modules/node-pty/src/windowsPtyAgent.ts +321 -0
- package/node_modules/node-pty/src/windowsTerminal.test.ts +229 -0
- package/node_modules/node-pty/src/windowsTerminal.ts +203 -0
- package/node_modules/node-pty/src/worker/conoutSocketWorker.ts +22 -0
- package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
- package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
- package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
- package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
- package/node_modules/node-pty/typings/node-pty.d.ts +211 -0
- package/node_modules/node-pty-prebuilt-multiarch/LICENSE +69 -0
- package/node_modules/node-pty-prebuilt-multiarch/README.md +39 -0
- package/node_modules/node-pty-prebuilt-multiarch/binding.gyp +78 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/.editorconfig +2 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/.drone.yml +17 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/.gitattributes +19 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/LICENSE +21 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/Makefile +166 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/README.md +151 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/RELEASES.md +280 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/VERSION.txt +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/configure +167 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/BufferResizeTests.cc +90 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ChangeScreenBuffer.cc +53 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ClearConsole.cc +72 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ConinMode.cc +117 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ConinMode.ps1 +116 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ConoutMode.cc +113 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/DebugClient.py +42 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/DebugServer.py +63 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/DumpLines.py +5 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/EnableExtendedFlags.txt +46 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +528 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +633 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/CP932.txt +630 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/CP936.txt +630 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/CP949.txt +630 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/CP950.txt +630 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +16 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/Results.txt +4 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +144 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/FontSurvey.cc +100 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/FormatChar.h +21 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/FreezePerfTest.cc +62 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/GetCh.cc +20 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/GetConsolePos.cc +41 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/GetFont.cc +261 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/IdentifyConsoleWindow.ps1 +51 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/IsNewConsole.cc +87 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/MouseInputNotes.txt +90 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/MoveConsoleWindow.cc +34 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Notes.txt +219 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/OSVersion.cc +27 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ScreenBufferFreezeInactive.cc +101 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ScreenBufferTest.cc +671 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ScreenBufferTest2.cc +151 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/SelectAllTest.cc +45 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/SetBufferSize.cc +32 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/SetCursorPos.cc +10 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/SetFont.cc +145 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/SetWindowRect.cc +36 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ShowArgv.cc +12 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/ShowConsoleInput.cc +40 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Spew.py +5 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/TestUtil.cc +172 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/UnicodeDoubleWidthTest.cc +102 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/UnicodeWideTest1.cc +246 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/UnicodeWideTest2.cc +130 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/UnixEcho.cc +89 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Utf16Echo.cc +46 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/VeryLargeRead.cc +122 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/VkEscapeTest.cc +56 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win10ResizeWhileFrozen.cc +52 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win10WrapTest1.cc +57 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win10WrapTest2.cc +30 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win32Echo1.cc +26 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win32Echo2.cc +19 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win32Test1.cc +46 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win32Test2.cc +70 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win32Test3.cc +78 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/Win32Write1.cc +44 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/WindowsBugCrashReader.cc +27 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/WriteConsole.cc +106 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/build32.sh +9 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/build64.sh +9 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/color-test.sh +212 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/font-notes.txt +300 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/misc/winbug-15048.cc +201 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/ship/build-pty4j-libpty.bat +36 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/ship/common_ship.py +53 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/ship/make_msvc_package.py +165 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/ship/ship.py +108 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Agent.cc +605 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Agent.h +103 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/AgentCreateDesktop.cc +84 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/AgentCreateDesktop.h +28 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleFont.cc +632 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleFont.h +28 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleInput.cc +852 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleInput.h +109 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleInputReencoding.cc +121 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleInputReencoding.h +36 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleLine.cc +152 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/ConsoleLine.h +41 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Coord.h +87 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/DebugShowInput.cc +239 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/DebugShowInput.h +32 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/DefaultInputMap.cc +422 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/DefaultInputMap.h +28 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/DsrSender.h +30 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/EventLoop.cc +99 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/EventLoop.h +47 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/InputMap.cc +246 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/InputMap.h +114 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/LargeConsoleRead.cc +71 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/LargeConsoleRead.h +68 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/NamedPipe.cc +378 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/NamedPipe.h +125 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Scraper.cc +699 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Scraper.h +103 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/SimplePool.h +75 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/SmallRect.h +143 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Terminal.cc +535 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Terminal.h +69 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/UnicodeEncoding.h +157 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/UnicodeEncodingTest.cc +189 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Win32Console.cc +107 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Win32Console.h +67 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Win32ConsoleBuffer.cc +193 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/Win32ConsoleBuffer.h +99 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/main.cc +114 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/agent/subdir.mk +61 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/configurations.gypi +60 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/debugserver/DebugServer.cc +117 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/debugserver/subdir.mk +41 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/include/winpty.h +242 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/include/winpty_constants.h +131 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/libwinpty/AgentLocation.cc +75 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/libwinpty/AgentLocation.h +28 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/libwinpty/LibWinptyException.h +54 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/libwinpty/WinptyInternal.h +72 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/libwinpty/subdir.mk +46 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/libwinpty/winpty.cc +970 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/AgentMsg.h +38 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/BackgroundDesktop.cc +122 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/BackgroundDesktop.h +73 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/Buffer.cc +103 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/Buffer.h +102 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/DebugClient.cc +187 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/DebugClient.h +38 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/GenRandom.cc +138 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/GenRandom.h +55 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/GetCommitHash.bat +13 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/Mutex.h +54 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/OsModule.h +63 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/OwnedHandle.cc +36 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/OwnedHandle.h +45 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/PrecompiledHeader.h +43 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/StringBuilder.h +227 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/StringBuilderTest.cc +114 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/StringUtil.cc +55 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/StringUtil.h +80 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/TimeMeasurement.h +63 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/UnixCtrlChars.h +45 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/UpdateGenVersion.bat +20 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WindowsSecurity.cc +460 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WindowsSecurity.h +104 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WindowsVersion.cc +252 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WindowsVersion.h +29 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WinptyAssert.cc +55 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WinptyAssert.h +64 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WinptyException.cc +57 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WinptyException.h +43 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WinptyVersion.cc +42 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/WinptyVersion.h +27 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/shared/winpty_snprintf.h +99 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/subdir.mk +5 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/tests/subdir.mk +28 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/tests/trivial_test.cc +158 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/InputHandler.cc +114 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/InputHandler.h +56 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/OutputHandler.cc +80 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/OutputHandler.h +53 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/Util.cc +86 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/Util.h +31 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/WakeupFd.cc +70 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/WakeupFd.h +42 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/main.cc +729 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/unix-adapter/subdir.mk +41 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/src/winpty.gyp +206 -0
- package/node_modules/node-pty-prebuilt-multiarch/deps/winpty/vcbuild.bat +83 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/conpty_console_list_agent.js +20 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/conpty_console_list_agent.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/eventEmitter2.js +47 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/eventEmitter2.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/eventEmitter2.test.js +30 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/eventEmitter2.test.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/index.js +51 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/index.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/interfaces.js +7 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/interfaces.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-file-path.js +18 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-file-path.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-loader.js +19 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-loader.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/terminal.js +182 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/terminal.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/terminal.test.js +136 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/terminal.test.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/testUtils.test.js +28 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/testUtils.test.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/types.js +7 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/types.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/unixTerminal.js +265 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/unixTerminal.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/unixTerminal.test.js +201 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/unixTerminal.test.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/utils.js +17 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/utils.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsPtyAgent.js +311 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsPtyAgent.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsPtyAgent.test.js +90 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsPtyAgent.test.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsTerminal.js +183 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsTerminal.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsTerminal.test.js +195 -0
- package/node_modules/node-pty-prebuilt-multiarch/lib/windowsTerminal.test.js.map +1 -0
- package/node_modules/node-pty-prebuilt-multiarch/package.json +69 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi102.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi108.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi64.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi67.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi72.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi79.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi83.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi88.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-arm64/node.abi93.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi102.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi108.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi64.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi67.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi72.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi79.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi83.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi88.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/darwin-x64/node.abi93.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi102.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi102.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi108.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi108.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi64.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi64.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi67.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi67.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi72.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi72.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi79.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi79.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi83.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi83.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi88.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi88.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi93.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi93.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi102.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi102.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi108.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi108.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi64.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi64.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi67.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi67.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi72.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi72.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi79.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi79.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi83.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi83.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi88.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi88.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi93.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-arm64/node.abi93.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi102.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi108.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi64.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi67.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi72.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi79.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi83.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi88.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-ia32/node.abi93.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi102.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi102.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi108.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi108.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi64.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi64.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi67.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi67.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi72.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi72.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi79.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi79.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi83.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi83.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi88.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi88.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi93.musl.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi93.node +0 -0
- package/node_modules/node-pty-prebuilt-multiarch/scripts/check-prebuild.js +15 -0
- package/node_modules/node-pty-prebuilt-multiarch/scripts/install.js +18 -0
- package/node_modules/node-pty-prebuilt-multiarch/scripts/post-install.js +41 -0
- package/node_modules/node-pty-prebuilt-multiarch/scripts/publish.js +62 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/conpty_console_list_agent.ts +19 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/eventEmitter2.test.ts +30 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/eventEmitter2.ts +48 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/index.ts +52 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/interfaces.ts +125 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/native.d.ts +54 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/prebuild-file-path.ts +21 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/prebuild-loader.ts +17 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/terminal.test.ts +116 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/terminal.ts +208 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/testUtils.test.ts +23 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/tsconfig.json +24 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/types.ts +15 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/unix/pty.cc +734 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/unixTerminal.test.ts +243 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/unixTerminal.ts +288 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/utils.ts +9 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/win/conpty.cc +455 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/win/conpty_console_list.cc +43 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/win/path_util.cc +73 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/win/path_util.h +22 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/win/winpty.cc +312 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/windowsPtyAgent.test.ts +94 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/windowsPtyAgent.ts +312 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/windowsTerminal.test.ts +205 -0
- package/node_modules/node-pty-prebuilt-multiarch/src/windowsTerminal.ts +189 -0
- package/node_modules/node-pty-prebuilt-multiarch/typings/node-pty.d.ts +212 -0
- package/node_modules/npmlog/CHANGELOG.md +49 -0
- package/node_modules/npmlog/LICENSE +15 -0
- package/node_modules/npmlog/README.md +216 -0
- package/node_modules/npmlog/log.js +309 -0
- package/node_modules/npmlog/package.json +28 -0
- package/node_modules/number-is-nan/index.js +4 -0
- package/node_modules/number-is-nan/license +21 -0
- package/node_modules/number-is-nan/package.json +35 -0
- package/node_modules/number-is-nan/readme.md +28 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +42 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/prebuild-install/CHANGELOG.md +81 -0
- package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
- package/node_modules/prebuild-install/LICENSE +21 -0
- package/node_modules/prebuild-install/README.md +139 -0
- package/node_modules/prebuild-install/asset.js +44 -0
- package/node_modules/prebuild-install/bin.js +78 -0
- package/node_modules/prebuild-install/download.js +142 -0
- package/node_modules/prebuild-install/error.js +14 -0
- package/node_modules/prebuild-install/help.txt +16 -0
- package/node_modules/prebuild-install/index.js +1 -0
- package/node_modules/prebuild-install/log.js +25 -0
- package/node_modules/prebuild-install/node_modules/detect-libc/.npmignore +7 -0
- package/node_modules/prebuild-install/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/prebuild-install/node_modules/detect-libc/README.md +78 -0
- package/node_modules/prebuild-install/node_modules/detect-libc/bin/detect-libc.js +18 -0
- package/node_modules/prebuild-install/node_modules/detect-libc/lib/detect-libc.js +92 -0
- package/node_modules/prebuild-install/node_modules/detect-libc/package.json +35 -0
- package/node_modules/prebuild-install/package.json +69 -0
- package/node_modules/prebuild-install/proxy.js +35 -0
- package/node_modules/prebuild-install/rc.js +60 -0
- package/node_modules/prebuild-install/util.js +143 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/pump/.github/FUNDING.yml +2 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +74 -0
- package/node_modules/pump/SECURITY.md +5 -0
- package/node_modules/pump/empty.js +1 -0
- package/node_modules/pump/index.js +86 -0
- package/node_modules/pump/package.json +30 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/node_modules/rc/LICENSE.BSD +26 -0
- package/node_modules/rc/LICENSE.MIT +24 -0
- package/node_modules/rc/README.md +227 -0
- package/node_modules/rc/browser.js +7 -0
- package/node_modules/rc/cli.js +4 -0
- package/node_modules/rc/index.js +53 -0
- package/node_modules/rc/lib/utils.js +104 -0
- package/node_modules/rc/package.json +29 -0
- package/node_modules/rc/test/ini.js +16 -0
- package/node_modules/rc/test/nested-env-vars.js +50 -0
- package/node_modules/rc/test/test.js +59 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +52 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +412 -0
- package/node_modules/semver/bin/semver +160 -0
- package/node_modules/semver/package.json +38 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +1525 -0
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +42 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/simple-concat/.travis.yml +3 -0
- package/node_modules/simple-concat/LICENSE +20 -0
- package/node_modules/simple-concat/README.md +44 -0
- package/node_modules/simple-concat/index.js +15 -0
- package/node_modules/simple-concat/package.json +47 -0
- package/node_modules/simple-concat/test/basic.js +41 -0
- package/node_modules/simple-get/LICENSE +20 -0
- package/node_modules/simple-get/README.md +319 -0
- package/node_modules/simple-get/index.js +107 -0
- package/node_modules/simple-get/package.json +53 -0
- package/node_modules/string-width/index.js +37 -0
- package/node_modules/string-width/license +21 -0
- package/node_modules/string-width/package.json +56 -0
- package/node_modules/string-width/readme.md +42 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +31 -0
- package/node_modules/strip-ansi/index.js +6 -0
- package/node_modules/strip-ansi/license +21 -0
- package/node_modules/strip-ansi/package.json +57 -0
- package/node_modules/strip-ansi/readme.md +33 -0
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +42 -0
- package/node_modules/strip-json-comments/readme.md +64 -0
- package/node_modules/tar-fs/.travis.yml +6 -0
- package/node_modules/tar-fs/LICENSE +21 -0
- package/node_modules/tar-fs/README.md +165 -0
- package/node_modules/tar-fs/index.js +363 -0
- package/node_modules/tar-fs/package.json +41 -0
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +346 -0
- package/node_modules/tar-stream/LICENSE +21 -0
- package/node_modules/tar-stream/README.md +168 -0
- package/node_modules/tar-stream/extract.js +257 -0
- package/node_modules/tar-stream/headers.js +295 -0
- package/node_modules/tar-stream/index.js +2 -0
- package/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/tar-stream/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/tar-stream/node_modules/readable-stream/README.md +106 -0
- package/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/tar-stream/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/tar-stream/node_modules/readable-stream/package.json +68 -0
- package/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/tar-stream/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/tar-stream/pack.js +255 -0
- package/node_modules/tar-stream/package.json +58 -0
- package/node_modules/tar-stream/sandbox.js +11 -0
- package/node_modules/tunnel-agent/LICENSE +55 -0
- package/node_modules/tunnel-agent/README.md +4 -0
- package/node_modules/tunnel-agent/index.js +244 -0
- package/node_modules/tunnel-agent/package.json +22 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/wide-align/LICENSE +14 -0
- package/node_modules/wide-align/README.md +47 -0
- package/node_modules/wide-align/align.js +65 -0
- package/node_modules/wide-align/package.json +33 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/package.json +30 -14
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
|
|
4
|
+
* Copyright (c) 2016, Daniel Imms (MIT License).
|
|
5
|
+
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.argsToCommandLine = exports.WindowsPtyAgent = void 0;
|
|
9
|
+
var fs = require("fs");
|
|
10
|
+
var os = require("os");
|
|
11
|
+
var path = require("path");
|
|
12
|
+
var child_process_1 = require("child_process");
|
|
13
|
+
var net_1 = require("net");
|
|
14
|
+
var windowsConoutConnection_1 = require("./windowsConoutConnection");
|
|
15
|
+
var utils_1 = require("./utils");
|
|
16
|
+
var conptyNative;
|
|
17
|
+
var winptyNative;
|
|
18
|
+
/**
|
|
19
|
+
* The amount of time to wait for additional data after the conpty shell process has exited before
|
|
20
|
+
* shutting down the socket. The timer will be reset if a new data event comes in after the timer
|
|
21
|
+
* has started.
|
|
22
|
+
*/
|
|
23
|
+
var FLUSH_DATA_INTERVAL = 1000;
|
|
24
|
+
/**
|
|
25
|
+
* This agent sits between the WindowsTerminal class and provides a common interface for both conpty
|
|
26
|
+
* and winpty.
|
|
27
|
+
*/
|
|
28
|
+
var WindowsPtyAgent = /** @class */ (function () {
|
|
29
|
+
function WindowsPtyAgent(file, args, env, cwd, cols, rows, debug, _useConpty, _useConptyDll, conptyInheritCursor) {
|
|
30
|
+
var _this = this;
|
|
31
|
+
if (_useConptyDll === void 0) { _useConptyDll = false; }
|
|
32
|
+
if (conptyInheritCursor === void 0) { conptyInheritCursor = false; }
|
|
33
|
+
this._useConpty = _useConpty;
|
|
34
|
+
this._useConptyDll = _useConptyDll;
|
|
35
|
+
this._pid = 0;
|
|
36
|
+
this._innerPid = 0;
|
|
37
|
+
if (this._useConpty === undefined || this._useConpty === true) {
|
|
38
|
+
this._useConpty = this._getWindowsBuildNumber() >= 18309;
|
|
39
|
+
}
|
|
40
|
+
if (this._useConpty) {
|
|
41
|
+
if (!conptyNative) {
|
|
42
|
+
conptyNative = utils_1.loadNativeModule('conpty').module;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (!winptyNative) {
|
|
47
|
+
winptyNative = utils_1.loadNativeModule('pty').module;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
this._ptyNative = this._useConpty ? conptyNative : winptyNative;
|
|
51
|
+
// Sanitize input variable.
|
|
52
|
+
cwd = path.resolve(cwd);
|
|
53
|
+
// Compose command line
|
|
54
|
+
var commandLine = argsToCommandLine(file, args);
|
|
55
|
+
// Open pty session.
|
|
56
|
+
var term;
|
|
57
|
+
if (this._useConpty) {
|
|
58
|
+
term = this._ptyNative.startProcess(file, cols, rows, debug, this._generatePipeName(), conptyInheritCursor, this._useConptyDll);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
term = this._ptyNative.startProcess(file, commandLine, env, cwd, cols, rows, debug);
|
|
62
|
+
this._pid = term.pid;
|
|
63
|
+
this._innerPid = term.innerPid;
|
|
64
|
+
}
|
|
65
|
+
// Not available on windows.
|
|
66
|
+
this._fd = term.fd;
|
|
67
|
+
// Generated incremental number that has no real purpose besides using it
|
|
68
|
+
// as a terminal id.
|
|
69
|
+
this._pty = term.pty;
|
|
70
|
+
// Create terminal pipe IPC channel and forward to a local unix socket.
|
|
71
|
+
this._outSocket = new net_1.Socket();
|
|
72
|
+
this._outSocket.setEncoding('utf8');
|
|
73
|
+
// The conout socket must be ready out on another thread to avoid deadlocks
|
|
74
|
+
this._conoutSocketWorker = new windowsConoutConnection_1.ConoutConnection(term.conout, this._useConptyDll);
|
|
75
|
+
this._conoutSocketWorker.onReady(function () {
|
|
76
|
+
_this._conoutSocketWorker.connectSocket(_this._outSocket);
|
|
77
|
+
});
|
|
78
|
+
this._outSocket.on('connect', function () {
|
|
79
|
+
_this._outSocket.emit('ready_datapipe');
|
|
80
|
+
});
|
|
81
|
+
var inSocketFD = fs.openSync(term.conin, 'w');
|
|
82
|
+
this._inSocket = new net_1.Socket({
|
|
83
|
+
fd: inSocketFD,
|
|
84
|
+
readable: false,
|
|
85
|
+
writable: true
|
|
86
|
+
});
|
|
87
|
+
this._inSocket.setEncoding('utf8');
|
|
88
|
+
if (this._useConpty) {
|
|
89
|
+
var connect = this._ptyNative.connect(this._pty, commandLine, cwd, env, this._useConptyDll, function (c) { return _this._$onProcessExit(c); });
|
|
90
|
+
this._innerPid = connect.pid;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "inSocket", {
|
|
94
|
+
get: function () { return this._inSocket; },
|
|
95
|
+
enumerable: false,
|
|
96
|
+
configurable: true
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "outSocket", {
|
|
99
|
+
get: function () { return this._outSocket; },
|
|
100
|
+
enumerable: false,
|
|
101
|
+
configurable: true
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "fd", {
|
|
104
|
+
get: function () { return this._fd; },
|
|
105
|
+
enumerable: false,
|
|
106
|
+
configurable: true
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "innerPid", {
|
|
109
|
+
get: function () { return this._innerPid; },
|
|
110
|
+
enumerable: false,
|
|
111
|
+
configurable: true
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "pty", {
|
|
114
|
+
get: function () { return this._pty; },
|
|
115
|
+
enumerable: false,
|
|
116
|
+
configurable: true
|
|
117
|
+
});
|
|
118
|
+
WindowsPtyAgent.prototype.resize = function (cols, rows) {
|
|
119
|
+
if (this._useConpty) {
|
|
120
|
+
if (this._exitCode !== undefined) {
|
|
121
|
+
throw new Error('Cannot resize a pty that has already exited');
|
|
122
|
+
}
|
|
123
|
+
this._ptyNative.resize(this._pty, cols, rows, this._useConptyDll);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
this._ptyNative.resize(this._pid, cols, rows);
|
|
127
|
+
};
|
|
128
|
+
WindowsPtyAgent.prototype.clear = function () {
|
|
129
|
+
if (this._useConpty) {
|
|
130
|
+
this._ptyNative.clear(this._pty, this._useConptyDll);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
WindowsPtyAgent.prototype.kill = function () {
|
|
134
|
+
var _this = this;
|
|
135
|
+
// Tell the agent to kill the pty, this releases handles to the process
|
|
136
|
+
if (this._useConpty) {
|
|
137
|
+
if (!this._useConptyDll) {
|
|
138
|
+
this._inSocket.readable = false;
|
|
139
|
+
this._outSocket.readable = false;
|
|
140
|
+
this._getConsoleProcessList().then(function (consoleProcessList) {
|
|
141
|
+
consoleProcessList.forEach(function (pid) {
|
|
142
|
+
try {
|
|
143
|
+
process.kill(pid);
|
|
144
|
+
}
|
|
145
|
+
catch (e) {
|
|
146
|
+
// Ignore if process cannot be found (kill ESRCH error)
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
151
|
+
this._conoutSocketWorker.dispose();
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
// Close the input write handle to signal the end of session.
|
|
155
|
+
this._inSocket.destroy();
|
|
156
|
+
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
157
|
+
this._outSocket.on('data', function () {
|
|
158
|
+
_this._conoutSocketWorker.dispose();
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
// Because pty.kill closes the handle, it will kill most processes by itself.
|
|
164
|
+
// Process IDs can be reused as soon as all handles to them are
|
|
165
|
+
// dropped, so we want to immediately kill the entire console process list.
|
|
166
|
+
// If we do not force kill all processes here, node servers in particular
|
|
167
|
+
// seem to become detached and remain running (see
|
|
168
|
+
// Microsoft/vscode#26807).
|
|
169
|
+
var processList = this._ptyNative.getProcessList(this._pid);
|
|
170
|
+
this._ptyNative.kill(this._pid, this._innerPid);
|
|
171
|
+
processList.forEach(function (pid) {
|
|
172
|
+
try {
|
|
173
|
+
process.kill(pid);
|
|
174
|
+
}
|
|
175
|
+
catch (e) {
|
|
176
|
+
// Ignore if process cannot be found (kill ESRCH error)
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
WindowsPtyAgent.prototype._getConsoleProcessList = function () {
|
|
182
|
+
var _this = this;
|
|
183
|
+
return new Promise(function (resolve) {
|
|
184
|
+
var agent = child_process_1.fork(path.join(__dirname, 'conpty_console_list_agent'), [_this._innerPid.toString()]);
|
|
185
|
+
agent.on('message', function (message) {
|
|
186
|
+
clearTimeout(timeout);
|
|
187
|
+
resolve(message.consoleProcessList);
|
|
188
|
+
});
|
|
189
|
+
var timeout = setTimeout(function () {
|
|
190
|
+
// Something went wrong, just send back the shell PID
|
|
191
|
+
agent.kill();
|
|
192
|
+
resolve([_this._innerPid]);
|
|
193
|
+
}, 5000);
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "exitCode", {
|
|
197
|
+
get: function () {
|
|
198
|
+
if (this._useConpty) {
|
|
199
|
+
return this._exitCode;
|
|
200
|
+
}
|
|
201
|
+
var winptyExitCode = this._ptyNative.getExitCode(this._innerPid);
|
|
202
|
+
return winptyExitCode === -1 ? undefined : winptyExitCode;
|
|
203
|
+
},
|
|
204
|
+
enumerable: false,
|
|
205
|
+
configurable: true
|
|
206
|
+
});
|
|
207
|
+
WindowsPtyAgent.prototype._getWindowsBuildNumber = function () {
|
|
208
|
+
var osVersion = (/(\d+)\.(\d+)\.(\d+)/g).exec(os.release());
|
|
209
|
+
var buildNumber = 0;
|
|
210
|
+
if (osVersion && osVersion.length === 4) {
|
|
211
|
+
buildNumber = parseInt(osVersion[3]);
|
|
212
|
+
}
|
|
213
|
+
return buildNumber;
|
|
214
|
+
};
|
|
215
|
+
WindowsPtyAgent.prototype._generatePipeName = function () {
|
|
216
|
+
return "conpty-" + Math.random() * 10000000;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Triggered from the native side when a contpy process exits.
|
|
220
|
+
*/
|
|
221
|
+
WindowsPtyAgent.prototype._$onProcessExit = function (exitCode) {
|
|
222
|
+
var _this = this;
|
|
223
|
+
this._exitCode = exitCode;
|
|
224
|
+
if (!this._useConptyDll) {
|
|
225
|
+
this._flushDataAndCleanUp();
|
|
226
|
+
this._outSocket.on('data', function () { return _this._flushDataAndCleanUp(); });
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
WindowsPtyAgent.prototype._flushDataAndCleanUp = function () {
|
|
230
|
+
var _this = this;
|
|
231
|
+
if (this._useConptyDll) {
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
if (this._closeTimeout) {
|
|
235
|
+
clearTimeout(this._closeTimeout);
|
|
236
|
+
}
|
|
237
|
+
this._closeTimeout = setTimeout(function () { return _this._cleanUpProcess(); }, FLUSH_DATA_INTERVAL);
|
|
238
|
+
};
|
|
239
|
+
WindowsPtyAgent.prototype._cleanUpProcess = function () {
|
|
240
|
+
if (this._useConptyDll) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
this._inSocket.readable = false;
|
|
244
|
+
this._outSocket.readable = false;
|
|
245
|
+
this._outSocket.destroy();
|
|
246
|
+
};
|
|
247
|
+
return WindowsPtyAgent;
|
|
248
|
+
}());
|
|
249
|
+
exports.WindowsPtyAgent = WindowsPtyAgent;
|
|
250
|
+
// Convert argc/argv into a Win32 command-line following the escaping convention
|
|
251
|
+
// documented on MSDN (e.g. see CommandLineToArgvW documentation). Copied from
|
|
252
|
+
// winpty project.
|
|
253
|
+
function argsToCommandLine(file, args) {
|
|
254
|
+
if (isCommandLine(args)) {
|
|
255
|
+
if (args.length === 0) {
|
|
256
|
+
return file;
|
|
257
|
+
}
|
|
258
|
+
return argsToCommandLine(file, []) + " " + args;
|
|
259
|
+
}
|
|
260
|
+
var argv = [file];
|
|
261
|
+
Array.prototype.push.apply(argv, args);
|
|
262
|
+
var result = '';
|
|
263
|
+
for (var argIndex = 0; argIndex < argv.length; argIndex++) {
|
|
264
|
+
if (argIndex > 0) {
|
|
265
|
+
result += ' ';
|
|
266
|
+
}
|
|
267
|
+
var arg = argv[argIndex];
|
|
268
|
+
// if it is empty or it contains whitespace and is not already quoted
|
|
269
|
+
var hasLopsidedEnclosingQuote = xOr((arg[0] !== '"'), (arg[arg.length - 1] !== '"'));
|
|
270
|
+
var hasNoEnclosingQuotes = ((arg[0] !== '"') && (arg[arg.length - 1] !== '"'));
|
|
271
|
+
var quote = arg === '' ||
|
|
272
|
+
(arg.indexOf(' ') !== -1 ||
|
|
273
|
+
arg.indexOf('\t') !== -1) &&
|
|
274
|
+
((arg.length > 1) &&
|
|
275
|
+
(hasLopsidedEnclosingQuote || hasNoEnclosingQuotes));
|
|
276
|
+
if (quote) {
|
|
277
|
+
result += '\"';
|
|
278
|
+
}
|
|
279
|
+
var bsCount = 0;
|
|
280
|
+
for (var i = 0; i < arg.length; i++) {
|
|
281
|
+
var p = arg[i];
|
|
282
|
+
if (p === '\\') {
|
|
283
|
+
bsCount++;
|
|
284
|
+
}
|
|
285
|
+
else if (p === '"') {
|
|
286
|
+
result += repeatText('\\', bsCount * 2 + 1);
|
|
287
|
+
result += '"';
|
|
288
|
+
bsCount = 0;
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
result += repeatText('\\', bsCount);
|
|
292
|
+
bsCount = 0;
|
|
293
|
+
result += p;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
if (quote) {
|
|
297
|
+
result += repeatText('\\', bsCount * 2);
|
|
298
|
+
result += '\"';
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
result += repeatText('\\', bsCount);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
exports.argsToCommandLine = argsToCommandLine;
|
|
307
|
+
function isCommandLine(args) {
|
|
308
|
+
return typeof args === 'string';
|
|
309
|
+
}
|
|
310
|
+
function repeatText(text, count) {
|
|
311
|
+
var result = '';
|
|
312
|
+
for (var i = 0; i < count; i++) {
|
|
313
|
+
result += text;
|
|
314
|
+
}
|
|
315
|
+
return result;
|
|
316
|
+
}
|
|
317
|
+
function xOr(arg1, arg2) {
|
|
318
|
+
return ((arg1 && !arg2) || (!arg1 && arg2));
|
|
319
|
+
}
|
|
320
|
+
//# sourceMappingURL=windowsPtyAgent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windowsPtyAgent.js","sourceRoot":"","sources":["../src/windowsPtyAgent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,uBAAyB;AACzB,uBAAyB;AACzB,2BAA6B;AAC7B,+CAAqC;AACrC,2BAA6B;AAE7B,qEAA6D;AAC7D,iCAA2C;AAE3C,IAAI,YAA2B,CAAC;AAChC,IAAI,YAA2B,CAAC;AAEhC;;;;GAIG;AACH,IAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC;;;GAGG;AACH;IAmBE,yBACE,IAAY,EACZ,IAAuB,EACvB,GAAa,EACb,GAAW,EACX,IAAY,EACZ,IAAY,EACZ,KAAc,EACN,UAA+B,EAC/B,aAA8B,EACtC,mBAAoC;QAVtC,iBAyEC;QAhES,8BAAA,EAAA,qBAA8B;QACtC,oCAAA,EAAA,2BAAoC;QAF5B,eAAU,GAAV,UAAU,CAAqB;QAC/B,kBAAa,GAAb,aAAa,CAAiB;QAzBhC,SAAI,GAAW,CAAC,CAAC;QACjB,cAAS,GAAW,CAAC,CAAC;QA2B5B,IAAI,IAAI,CAAC,UA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AE,IAAa;IACvC,OAAO,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2017, Daniel Imms (MIT License).
|
|
4
|
+
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var assert = require("assert");
|
|
8
|
+
var windowsPtyAgent_1 = require("./windowsPtyAgent");
|
|
9
|
+
function check(file, args, expected) {
|
|
10
|
+
assert.equal(windowsPtyAgent_1.argsToCommandLine(file, args), expected);
|
|
11
|
+
}
|
|
12
|
+
if (process.platform === 'win32') {
|
|
13
|
+
describe('argsToCommandLine', function () {
|
|
14
|
+
describe('Plain strings', function () {
|
|
15
|
+
it('doesn\'t quote plain string', function () {
|
|
16
|
+
check('asdf', [], 'asdf');
|
|
17
|
+
});
|
|
18
|
+
it('doesn\'t escape backslashes', function () {
|
|
19
|
+
check('\\asdf\\qwer\\', [], '\\asdf\\qwer\\');
|
|
20
|
+
});
|
|
21
|
+
it('doesn\'t escape multiple backslashes', function () {
|
|
22
|
+
check('asdf\\\\qwer', [], 'asdf\\\\qwer');
|
|
23
|
+
});
|
|
24
|
+
it('adds backslashes before quotes', function () {
|
|
25
|
+
check('"asdf"qwer"', [], '\\"asdf\\"qwer\\"');
|
|
26
|
+
});
|
|
27
|
+
it('escapes backslashes before quotes', function () {
|
|
28
|
+
check('asdf\\"qwer', [], 'asdf\\\\\\"qwer');
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
describe('Quoted strings', function () {
|
|
32
|
+
it('quotes string with spaces', function () {
|
|
33
|
+
check('asdf qwer', [], '"asdf qwer"');
|
|
34
|
+
});
|
|
35
|
+
it('quotes empty string', function () {
|
|
36
|
+
check('', [], '""');
|
|
37
|
+
});
|
|
38
|
+
it('quotes string with tabs', function () {
|
|
39
|
+
check('asdf\tqwer', [], '"asdf\tqwer"');
|
|
40
|
+
});
|
|
41
|
+
it('escapes only the last backslash', function () {
|
|
42
|
+
check('\\asdf \\qwer\\', [], '"\\asdf \\qwer\\\\"');
|
|
43
|
+
});
|
|
44
|
+
it('doesn\'t escape multiple backslashes', function () {
|
|
45
|
+
check('asdf \\\\qwer', [], '"asdf \\\\qwer"');
|
|
46
|
+
});
|
|
47
|
+
it('escapes backslashes before quotes', function () {
|
|
48
|
+
check('asdf \\"qwer', [], '"asdf \\\\\\"qwer"');
|
|
49
|
+
});
|
|
50
|
+
it('escapes multiple backslashes at the end', function () {
|
|
51
|
+
check('asdf qwer\\\\', [], '"asdf qwer\\\\\\\\"');
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
describe('Multiple arguments', function () {
|
|
55
|
+
it('joins arguments with spaces', function () {
|
|
56
|
+
check('asdf', ['qwer zxcv', '', '"'], 'asdf "qwer zxcv" "" \\"');
|
|
57
|
+
});
|
|
58
|
+
it('array argument all in quotes', function () {
|
|
59
|
+
check('asdf', ['"surounded by quotes"'], 'asdf \\"surounded by quotes\\"');
|
|
60
|
+
});
|
|
61
|
+
it('array argument quotes in the middle', function () {
|
|
62
|
+
check('asdf', ['quotes "in the" middle'], 'asdf "quotes \\"in the\\" middle"');
|
|
63
|
+
});
|
|
64
|
+
it('array argument quotes near start', function () {
|
|
65
|
+
check('asdf', ['"quotes" near start'], 'asdf "\\"quotes\\" near start"');
|
|
66
|
+
});
|
|
67
|
+
it('array argument quotes near end', function () {
|
|
68
|
+
check('asdf', ['quotes "near end"'], 'asdf "quotes \\"near end\\""');
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
describe('Args as CommandLine', function () {
|
|
72
|
+
it('should handle empty string', function () {
|
|
73
|
+
check('file', '', 'file');
|
|
74
|
+
});
|
|
75
|
+
it('should not change args', function () {
|
|
76
|
+
check('file', 'foo bar baz', 'file foo bar baz');
|
|
77
|
+
check('file', 'foo \\ba"r \baz', 'file foo \\ba"r \baz');
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
describe('Real-world cases', function () {
|
|
81
|
+
it('quotes within quotes', function () {
|
|
82
|
+
check('cmd.exe', ['/c', 'powershell -noexit -command \'Set-location \"C:\\user\"\''], 'cmd.exe /c "powershell -noexit -command \'Set-location \\\"C:\\user\\"\'"');
|
|
83
|
+
});
|
|
84
|
+
it('space within quotes', function () {
|
|
85
|
+
check('cmd.exe', ['/k', '"C:\\Users\\alros\\Desktop\\test script.bat"'], 'cmd.exe /k \\"C:\\Users\\alros\\Desktop\\test script.bat\\"');
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=windowsPtyAgent.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windowsPtyAgent.test.js","sourceRoot":"","sources":["../src/windowsPtyAgent.test.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAEH,+BAAiC;AACjC,qDAAsD;AAEtD,SAAS,KAAK,CAAC,IAAY,EAAE,IAAuB,EAAE,QAAgB;IACpE,MAAM,CAAC,KAAK,CAAC,mCAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;IAChC,QAAQ,CAAC,mBAAmB,EAAE;QAC5B,QAAQ,CAAC,eAAe,EAAE;YACxB,EAAE,CAAC,6BAA6B,EAAE;gBAChC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;YACH,EAAE,CAAC,6BAA6B,EAAE;gBAChC,KAAK,CAAC,gBAAgB,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAC;YAChD,CAAC,CAAC,CAAC;YACH,EAAE,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SAAS,EAAE,CAAC,IAAI,EAAE,2DAA2D,CAAC,EAAE,2EAA2E,CAAC,CAAC;YACrK,CAAC,CAAC,CAAC;YACH,EAAE,CAAC,qBAAqB,EAAE;gBACxB,KAAK,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,8CAA8C,CAAC,EAAE,6DAA6D,CAAC,CAAC;YAC1I,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;CACJ"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
|
|
4
|
+
* Copyright (c) 2016, Daniel Imms (MIT License).
|
|
5
|
+
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
6
|
+
*/
|
|
7
|
+
var __extends = (this && this.__extends) || (function () {
|
|
8
|
+
var extendStatics = function (d, b) {
|
|
9
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12
|
+
return extendStatics(d, b);
|
|
13
|
+
};
|
|
14
|
+
return function (d, b) {
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.WindowsTerminal = void 0;
|
|
22
|
+
var terminal_1 = require("./terminal");
|
|
23
|
+
var windowsPtyAgent_1 = require("./windowsPtyAgent");
|
|
24
|
+
var utils_1 = require("./utils");
|
|
25
|
+
var DEFAULT_FILE = 'cmd.exe';
|
|
26
|
+
var DEFAULT_NAME = 'Windows Shell';
|
|
27
|
+
var WindowsTerminal = /** @class */ (function (_super) {
|
|
28
|
+
__extends(WindowsTerminal, _super);
|
|
29
|
+
function WindowsTerminal(file, args, opt) {
|
|
30
|
+
var _this = _super.call(this, opt) || this;
|
|
31
|
+
_this._checkType('args', args, 'string', true);
|
|
32
|
+
// Initialize arguments
|
|
33
|
+
args = args || [];
|
|
34
|
+
file = file || DEFAULT_FILE;
|
|
35
|
+
opt = opt || {};
|
|
36
|
+
opt.env = opt.env || process.env;
|
|
37
|
+
if (opt.encoding) {
|
|
38
|
+
console.warn('Setting encoding on Windows is not supported');
|
|
39
|
+
}
|
|
40
|
+
var env = utils_1.assign({}, opt.env);
|
|
41
|
+
_this._cols = opt.cols || terminal_1.DEFAULT_COLS;
|
|
42
|
+
_this._rows = opt.rows || terminal_1.DEFAULT_ROWS;
|
|
43
|
+
var cwd = opt.cwd || process.cwd();
|
|
44
|
+
var name = opt.name || env.TERM || DEFAULT_NAME;
|
|
45
|
+
var parsedEnv = _this._parseEnv(env);
|
|
46
|
+
// If the terminal is ready
|
|
47
|
+
_this._isReady = false;
|
|
48
|
+
// Functions that need to run after `ready` event is emitted.
|
|
49
|
+
_this._deferreds = [];
|
|
50
|
+
// Create new termal.
|
|
51
|
+
_this._agent = new windowsPtyAgent_1.WindowsPtyAgent(file, args, parsedEnv, cwd, _this._cols, _this._rows, false, opt.useConpty, opt.useConptyDll, opt.conptyInheritCursor);
|
|
52
|
+
_this._socket = _this._agent.outSocket;
|
|
53
|
+
// Not available until `ready` event emitted.
|
|
54
|
+
_this._pid = _this._agent.innerPid;
|
|
55
|
+
_this._fd = _this._agent.fd;
|
|
56
|
+
_this._pty = _this._agent.pty;
|
|
57
|
+
// The forked windows terminal is not available until `ready` event is
|
|
58
|
+
// emitted.
|
|
59
|
+
_this._socket.on('ready_datapipe', function () {
|
|
60
|
+
// Run deferreds and set ready state once the first data event is received.
|
|
61
|
+
_this._socket.once('data', function () {
|
|
62
|
+
// Wait until the first data event is fired then we can run deferreds.
|
|
63
|
+
if (!_this._isReady) {
|
|
64
|
+
// Terminal is now ready and we can avoid having to defer method
|
|
65
|
+
// calls.
|
|
66
|
+
_this._isReady = true;
|
|
67
|
+
// Execute all deferred methods
|
|
68
|
+
_this._deferreds.forEach(function (fn) {
|
|
69
|
+
// NB! In order to ensure that `this` has all its references
|
|
70
|
+
// updated any variable that need to be available in `this` before
|
|
71
|
+
// the deferred is run has to be declared above this forEach
|
|
72
|
+
// statement.
|
|
73
|
+
fn.run();
|
|
74
|
+
});
|
|
75
|
+
// Reset
|
|
76
|
+
_this._deferreds = [];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
// Shutdown if `error` event is emitted.
|
|
80
|
+
_this._socket.on('error', function (err) {
|
|
81
|
+
// Close terminal session.
|
|
82
|
+
_this._close();
|
|
83
|
+
// EIO, happens when someone closes our child process: the only process
|
|
84
|
+
// in the terminal.
|
|
85
|
+
// node < 0.6.14: errno 5
|
|
86
|
+
// node >= 0.6.14: read EIO
|
|
87
|
+
if (err.code) {
|
|
88
|
+
if (~err.code.indexOf('errno 5') || ~err.code.indexOf('EIO'))
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
// Throw anything else.
|
|
92
|
+
if (_this.listeners('error').length < 2) {
|
|
93
|
+
throw err;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
// Cleanup after the socket is closed.
|
|
97
|
+
_this._socket.on('close', function () {
|
|
98
|
+
_this.emit('exit', _this._agent.exitCode);
|
|
99
|
+
_this._close();
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
_this._file = file;
|
|
103
|
+
_this._name = name;
|
|
104
|
+
_this._readable = true;
|
|
105
|
+
_this._writable = true;
|
|
106
|
+
_this._forwardEvents();
|
|
107
|
+
return _this;
|
|
108
|
+
}
|
|
109
|
+
WindowsTerminal.prototype._write = function (data) {
|
|
110
|
+
this._defer(this._doWrite, data);
|
|
111
|
+
};
|
|
112
|
+
WindowsTerminal.prototype._doWrite = function (data) {
|
|
113
|
+
this._agent.inSocket.write(data);
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* openpty
|
|
117
|
+
*/
|
|
118
|
+
WindowsTerminal.open = function (options) {
|
|
119
|
+
throw new Error('open() not supported on windows, use Fork() instead.');
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* TTY
|
|
123
|
+
*/
|
|
124
|
+
WindowsTerminal.prototype.resize = function (cols, rows) {
|
|
125
|
+
var _this = this;
|
|
126
|
+
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
|
|
127
|
+
throw new Error('resizing must be done using positive cols and rows');
|
|
128
|
+
}
|
|
129
|
+
this._deferNoArgs(function () {
|
|
130
|
+
_this._agent.resize(cols, rows);
|
|
131
|
+
_this._cols = cols;
|
|
132
|
+
_this._rows = rows;
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
WindowsTerminal.prototype.clear = function () {
|
|
136
|
+
var _this = this;
|
|
137
|
+
this._deferNoArgs(function () {
|
|
138
|
+
_this._agent.clear();
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
WindowsTerminal.prototype.destroy = function () {
|
|
142
|
+
var _this = this;
|
|
143
|
+
this._deferNoArgs(function () {
|
|
144
|
+
_this.kill();
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
WindowsTerminal.prototype.kill = function (signal) {
|
|
148
|
+
var _this = this;
|
|
149
|
+
this._deferNoArgs(function () {
|
|
150
|
+
if (signal) {
|
|
151
|
+
throw new Error('Signals not supported on windows.');
|
|
152
|
+
}
|
|
153
|
+
_this._close();
|
|
154
|
+
_this._agent.kill();
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
WindowsTerminal.prototype._deferNoArgs = function (deferredFn) {
|
|
158
|
+
var _this = this;
|
|
159
|
+
// If the terminal is ready, execute.
|
|
160
|
+
if (this._isReady) {
|
|
161
|
+
deferredFn.call(this);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
// Queue until terminal is ready.
|
|
165
|
+
this._deferreds.push({
|
|
166
|
+
run: function () { return deferredFn.call(_this); }
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
WindowsTerminal.prototype._defer = function (deferredFn, arg) {
|
|
170
|
+
var _this = this;
|
|
171
|
+
// If the terminal is ready, execute.
|
|
172
|
+
if (this._isReady) {
|
|
173
|
+
deferredFn.call(this, arg);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
// Queue until terminal is ready.
|
|
177
|
+
this._deferreds.push({
|
|
178
|
+
run: function () { return deferredFn.call(_this, arg); }
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
Object.defineProperty(WindowsTerminal.prototype, "process", {
|
|
182
|
+
get: function () { return this._name; },
|
|
183
|
+
enumerable: false,
|
|
184
|
+
configurable: true
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(WindowsTerminal.prototype, "master", {
|
|
187
|
+
get: function () { throw new Error('master is not supported on Windows'); },
|
|
188
|
+
enumerable: false,
|
|
189
|
+
configurable: true
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(WindowsTerminal.prototype, "slave", {
|
|
192
|
+
get: function () { throw new Error('slave is not supported on Windows'); },
|
|
193
|
+
enumerable: false,
|
|
194
|
+
configurable: true
|
|
195
|
+
});
|
|
196
|
+
return WindowsTerminal;
|
|
197
|
+
}(terminal_1.Terminal));
|
|
198
|
+
exports.WindowsTerminal = WindowsTerminal;
|
|
199
|
+
//# sourceMappingURL=windowsTerminal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windowsTerminal.js","sourceRoot":"","sources":["../src/windowsTerminal.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAGH,uCAAkE;AAClE,qDAAoD;AAGpD,iCAAiC;AAEjC,IAAM,YAAY,GAAG,SAAS,CAAC;AAC/B,IAAM,YAAY,GAAG,eAAe,CAAC;AAErC;IAAqC,mCAA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