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,201 @@
|
|
|
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 unixTerminal_1 = require("./unixTerminal");
|
|
8
|
+
var assert = require("assert");
|
|
9
|
+
var cp = require("child_process");
|
|
10
|
+
var path = require("path");
|
|
11
|
+
var testUtils_test_1 = require("./testUtils.test");
|
|
12
|
+
var FIXTURES_PATH = path.normalize(path.join(__dirname, '..', 'fixtures', 'utf8-character.txt'));
|
|
13
|
+
if (process.platform !== 'win32') {
|
|
14
|
+
describe('UnixTerminal', function () {
|
|
15
|
+
describe('Constructor', function () {
|
|
16
|
+
it('should set a valid pts name', function () {
|
|
17
|
+
var term = new unixTerminal_1.UnixTerminal('/bin/bash', [], {});
|
|
18
|
+
var regExp;
|
|
19
|
+
if (process.platform === 'linux') {
|
|
20
|
+
// https://linux.die.net/man/4/pts
|
|
21
|
+
regExp = /^\/dev\/pts\/\d+$/;
|
|
22
|
+
}
|
|
23
|
+
if (process.platform === 'darwin') {
|
|
24
|
+
// https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man4/pty.4.html
|
|
25
|
+
regExp = /^\/dev\/tty[p-sP-S][a-z0-9]+$/;
|
|
26
|
+
}
|
|
27
|
+
if (regExp) {
|
|
28
|
+
assert.ok(regExp.test(term._pty), '"' + term._pty + '" should match ' + regExp.toString());
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
describe('PtyForkEncodingOption', function () {
|
|
33
|
+
it('should default to utf8', function (done) {
|
|
34
|
+
var term = new unixTerminal_1.UnixTerminal('/bin/bash', ['-c', "cat \"" + FIXTURES_PATH + "\""]);
|
|
35
|
+
term.on('data', function (data) {
|
|
36
|
+
assert.equal(typeof data, 'string');
|
|
37
|
+
assert.equal(data, '\u00E6');
|
|
38
|
+
done();
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
it('should return a Buffer when encoding is null', function (done) {
|
|
42
|
+
var term = new unixTerminal_1.UnixTerminal('/bin/bash', ['-c', "cat \"" + FIXTURES_PATH + "\""], {
|
|
43
|
+
encoding: null
|
|
44
|
+
});
|
|
45
|
+
term.on('data', function (data) {
|
|
46
|
+
assert.equal(typeof data, 'object');
|
|
47
|
+
assert.ok(data instanceof Buffer);
|
|
48
|
+
assert.equal(0xC3, data[0]);
|
|
49
|
+
assert.equal(0xA6, data[1]);
|
|
50
|
+
done();
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
it('should support other encodings', function (done) {
|
|
54
|
+
var text = 'test æ!';
|
|
55
|
+
var term = new unixTerminal_1.UnixTerminal(null, ['-c', 'echo "' + text + '"'], {
|
|
56
|
+
encoding: 'base64'
|
|
57
|
+
});
|
|
58
|
+
var buffer = '';
|
|
59
|
+
term.on('data', function (data) {
|
|
60
|
+
assert.equal(typeof data, 'string');
|
|
61
|
+
buffer += data;
|
|
62
|
+
});
|
|
63
|
+
term.on('exit', function () {
|
|
64
|
+
assert.equal(Buffer.alloc(8, buffer, 'base64').toString().replace('\r', '').replace('\n', ''), text);
|
|
65
|
+
done();
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
describe('open', function () {
|
|
70
|
+
var term;
|
|
71
|
+
afterEach(function () {
|
|
72
|
+
if (term) {
|
|
73
|
+
term.slave.destroy();
|
|
74
|
+
term.master.destroy();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
it('should open a pty with access to a master and slave socket', function (done) {
|
|
78
|
+
term = unixTerminal_1.UnixTerminal.open({});
|
|
79
|
+
var slavebuf = '';
|
|
80
|
+
term.slave.on('data', function (data) {
|
|
81
|
+
slavebuf += data;
|
|
82
|
+
});
|
|
83
|
+
var masterbuf = '';
|
|
84
|
+
term.master.on('data', function (data) {
|
|
85
|
+
masterbuf += data;
|
|
86
|
+
});
|
|
87
|
+
testUtils_test_1.pollUntil(function () {
|
|
88
|
+
if (masterbuf === 'slave\r\nmaster\r\n' && slavebuf === 'master\n') {
|
|
89
|
+
done();
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
return false;
|
|
93
|
+
}, 200, 10);
|
|
94
|
+
term.slave.write('slave\n');
|
|
95
|
+
term.master.write('master\n');
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
describe('signals in parent and child', function () {
|
|
99
|
+
it('SIGINT - custom in parent and child', function (done) {
|
|
100
|
+
// this test is cumbersome - we have to run it in a sub process to
|
|
101
|
+
// see behavior of SIGINT handlers
|
|
102
|
+
var data = "\n var pty = require('./lib/index');\n process.on('SIGINT', () => console.log('SIGINT in parent'));\n var ptyProcess = pty.spawn('node', ['-e', 'process.on(\"SIGINT\", ()=>console.log(\"SIGINT in child\"));setTimeout(() => null, 300);'], {\n name: 'xterm-color',\n cols: 80,\n rows: 30,\n cwd: process.env.HOME,\n env: process.env\n });\n ptyProcess.on('data', function (data) {\n console.log(data);\n });\n setTimeout(() => null, 500);\n console.log('ready', ptyProcess.pid);\n ";
|
|
103
|
+
var buffer = [];
|
|
104
|
+
var p = cp.spawn('node', ['-e', data]);
|
|
105
|
+
var sub = '';
|
|
106
|
+
p.stdout.on('data', function (data) {
|
|
107
|
+
if (!data.toString().indexOf('ready')) {
|
|
108
|
+
sub = data.toString().split(' ')[1].slice(0, -1);
|
|
109
|
+
setTimeout(function () {
|
|
110
|
+
process.kill(parseInt(sub), 'SIGINT'); // SIGINT to child
|
|
111
|
+
p.kill('SIGINT'); // SIGINT to parent
|
|
112
|
+
}, 200);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
buffer.push(data.toString().replace(/^\s+|\s+$/g, ''));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
p.on('close', function () {
|
|
119
|
+
// handlers in parent and child should have been triggered
|
|
120
|
+
assert.equal(buffer.indexOf('SIGINT in child') !== -1, true);
|
|
121
|
+
assert.equal(buffer.indexOf('SIGINT in parent') !== -1, true);
|
|
122
|
+
done();
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
it('SIGINT - custom in parent, default in child', function (done) {
|
|
126
|
+
// this tests the original idea of the signal(...) change in pty.cc:
|
|
127
|
+
// to make sure the SIGINT handler of a pty child is reset to default
|
|
128
|
+
// and does not interfere with the handler in the parent
|
|
129
|
+
var data = "\n var pty = require('./lib/index');\n process.on('SIGINT', () => console.log('SIGINT in parent'));\n var ptyProcess = pty.spawn('node', ['-e', 'setTimeout(() => console.log(\"should not be printed\"), 300);'], {\n name: 'xterm-color',\n cols: 80,\n rows: 30,\n cwd: process.env.HOME,\n env: process.env\n });\n ptyProcess.on('data', function (data) {\n console.log(data);\n });\n setTimeout(() => null, 500);\n console.log('ready', ptyProcess.pid);\n ";
|
|
130
|
+
var buffer = [];
|
|
131
|
+
var p = cp.spawn('node', ['-e', data]);
|
|
132
|
+
var sub = '';
|
|
133
|
+
p.stdout.on('data', function (data) {
|
|
134
|
+
if (!data.toString().indexOf('ready')) {
|
|
135
|
+
sub = data.toString().split(' ')[1].slice(0, -1);
|
|
136
|
+
setTimeout(function () {
|
|
137
|
+
process.kill(parseInt(sub), 'SIGINT'); // SIGINT to child
|
|
138
|
+
p.kill('SIGINT'); // SIGINT to parent
|
|
139
|
+
}, 200);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
buffer.push(data.toString().replace(/^\s+|\s+$/g, ''));
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
p.on('close', function () {
|
|
146
|
+
// handlers in parent and child should have been triggered
|
|
147
|
+
assert.equal(buffer.indexOf('should not be printed') !== -1, false);
|
|
148
|
+
assert.equal(buffer.indexOf('SIGINT in parent') !== -1, true);
|
|
149
|
+
done();
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
it('SIGHUP default (child only)', function (done) {
|
|
153
|
+
var term = new unixTerminal_1.UnixTerminal('node', ['-e', "\n console.log('ready');\n setTimeout(()=>console.log('timeout'), 200);"
|
|
154
|
+
]);
|
|
155
|
+
var buffer = '';
|
|
156
|
+
term.on('data', function (data) {
|
|
157
|
+
if (data === 'ready\r\n') {
|
|
158
|
+
term.kill();
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
buffer += data;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
term.on('exit', function () {
|
|
165
|
+
// no timeout in buffer
|
|
166
|
+
assert.equal(buffer, '');
|
|
167
|
+
done();
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
it('SIGUSR1 - custom in parent and child', function (done) {
|
|
171
|
+
var pHandlerCalled = 0;
|
|
172
|
+
var handleSigUsr = function (h) {
|
|
173
|
+
return function () {
|
|
174
|
+
pHandlerCalled += 1;
|
|
175
|
+
process.removeListener('SIGUSR1', h);
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
process.on('SIGUSR1', handleSigUsr(handleSigUsr));
|
|
179
|
+
var term = new unixTerminal_1.UnixTerminal('node', ['-e', "\n process.on('SIGUSR1', () => {\n console.log('SIGUSR1 in child');\n });\n console.log('ready');\n setTimeout(()=>null, 200);"
|
|
180
|
+
]);
|
|
181
|
+
var buffer = '';
|
|
182
|
+
term.on('data', function (data) {
|
|
183
|
+
if (data === 'ready\r\n') {
|
|
184
|
+
process.kill(process.pid, 'SIGUSR1');
|
|
185
|
+
term.kill('SIGUSR1');
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
buffer += data;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
term.on('exit', function () {
|
|
192
|
+
// should have called both handlers and only once
|
|
193
|
+
assert.equal(pHandlerCalled, 1);
|
|
194
|
+
assert.equal(buffer, 'SIGUSR1 in child\r\n');
|
|
195
|
+
done();
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=unixTerminal.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unixTerminal.test.js","sourceRoot":"","sources":["../src/unixTerminal.test.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAEH,+CAA8C;AAC9C,+BAAiC;AACjC,kCAAoC;AACpC,2BAA6B;AAC7B,mDAA6C;AAE7C,IAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAEnG,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;IAChC,QAAQ,CAAC,cAAc,EAAE;QACvB,QAAQ,CAAC,aAAa,EAAE;YACtB,EAAE,CAAC,6BAA6B,EAAE;gBAChC,IAAM,IAAI,GAAG,IAAI,2BAAY,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;gBACnD,IAAI,MAAc,CAAC;gBACnB,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;oBAChC,kCAAkC;oBAClC,MAAM,GAAG,mBAAmB,CAAC;iBAC9B;gBACD,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;oBACjC,qGAAqG;oBACrG,MAAM,GAAG,+BAA+B,CAAC;iBAC1C;gBACD,IAAI,MAAM,EAAE;oBACV,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAO,IAAK,CAAC,IAAI,CAAC,EAAE,GAAG,GAAS,IAAK,CAAC,IAAI,GAAG,iBAAiB,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;iBAC1G;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,uBAAuB,EAAE;YA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
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.assign = void 0;
|
|
8
|
+
function assign(target) {
|
|
9
|
+
var sources = [];
|
|
10
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
11
|
+
sources[_i - 1] = arguments[_i];
|
|
12
|
+
}
|
|
13
|
+
sources.forEach(function (source) { return Object.keys(source).forEach(function (key) { return target[key] = source[key]; }); });
|
|
14
|
+
return target;
|
|
15
|
+
}
|
|
16
|
+
exports.assign = assign;
|
|
17
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,SAAgB,MAAM,CAAC,MAAW;IAAE,iBAAiB;SAAjB,UAAiB,EAAjB,qBAAiB,EAAjB,IAAiB;QAAjB,gCAAiB;;IACnD,OAAO,CAAC,OAAO,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,EAAzB,CAAyB,CAAC,EAA7D,CAA6D,CAAC,CAAC;IACzF,OAAO,MAAM,CAAC;AAChB,CAAC;AAHD,wBAGC"}
|
|
@@ -0,0 +1,311 @@
|
|
|
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 os = require("os");
|
|
10
|
+
var path = require("path");
|
|
11
|
+
var net_1 = require("net");
|
|
12
|
+
var child_process_1 = require("child_process");
|
|
13
|
+
var conptyNative;
|
|
14
|
+
var winptyNative;
|
|
15
|
+
/**
|
|
16
|
+
* The amount of time to wait for additional data after the conpty shell process has exited before
|
|
17
|
+
* shutting down the socket. The timer will be reset if a new data event comes in after the timer
|
|
18
|
+
* has started.
|
|
19
|
+
*/
|
|
20
|
+
var FLUSH_DATA_INTERVAL = 20;
|
|
21
|
+
/**
|
|
22
|
+
* This agent sits between the WindowsTerminal class and provides a common interface for both conpty
|
|
23
|
+
* and winpty.
|
|
24
|
+
*/
|
|
25
|
+
var WindowsPtyAgent = /** @class */ (function () {
|
|
26
|
+
function WindowsPtyAgent(file, args, env, cwd, cols, rows, debug, _useConpty, conptyInheritCursor) {
|
|
27
|
+
var _this = this;
|
|
28
|
+
if (conptyInheritCursor === void 0) { conptyInheritCursor = false; }
|
|
29
|
+
this._useConpty = _useConpty;
|
|
30
|
+
if (this._useConpty === undefined || this._useConpty === true) {
|
|
31
|
+
this._useConpty = this._getWindowsBuildNumber() >= 18309;
|
|
32
|
+
}
|
|
33
|
+
if (this._useConpty) {
|
|
34
|
+
if (!conptyNative) {
|
|
35
|
+
try {
|
|
36
|
+
conptyNative = require('../build/Release/conpty.node');
|
|
37
|
+
}
|
|
38
|
+
catch (outerError) {
|
|
39
|
+
try {
|
|
40
|
+
conptyNative = require('../build/Debug/conpty.node');
|
|
41
|
+
}
|
|
42
|
+
catch (innerError) {
|
|
43
|
+
console.error('innerError', innerError);
|
|
44
|
+
// Re-throw the exception from the Release require if the Debug require fails as well
|
|
45
|
+
throw outerError;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
if (!winptyNative) {
|
|
52
|
+
try {
|
|
53
|
+
winptyNative = require('../build/Release/pty.node');
|
|
54
|
+
}
|
|
55
|
+
catch (outerError) {
|
|
56
|
+
try {
|
|
57
|
+
winptyNative = require('../build/Debug/pty.node');
|
|
58
|
+
}
|
|
59
|
+
catch (innerError) {
|
|
60
|
+
console.error('innerError', innerError);
|
|
61
|
+
// Re-throw the exception from the Release require if the Debug require fails as well
|
|
62
|
+
throw outerError;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
this._ptyNative = this._useConpty ? conptyNative : winptyNative;
|
|
68
|
+
// Sanitize input variable.
|
|
69
|
+
cwd = path.resolve(cwd);
|
|
70
|
+
// Compose command line
|
|
71
|
+
var commandLine = argsToCommandLine(file, args);
|
|
72
|
+
// Open pty session.
|
|
73
|
+
var term;
|
|
74
|
+
if (this._useConpty) {
|
|
75
|
+
term = this._ptyNative.startProcess(file, cols, rows, debug, this._generatePipeName(), conptyInheritCursor);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
term = this._ptyNative.startProcess(file, commandLine, env, cwd, cols, rows, debug);
|
|
79
|
+
this._pid = term.pid;
|
|
80
|
+
this._innerPid = term.innerPid;
|
|
81
|
+
this._innerPidHandle = term.innerPidHandle;
|
|
82
|
+
}
|
|
83
|
+
// Not available on windows.
|
|
84
|
+
this._fd = term.fd;
|
|
85
|
+
// Generated incremental number that has no real purpose besides using it
|
|
86
|
+
// as a terminal id.
|
|
87
|
+
this._pty = term.pty;
|
|
88
|
+
// Create terminal pipe IPC channel and forward to a local unix socket.
|
|
89
|
+
this._outSocket = new net_1.Socket();
|
|
90
|
+
this._outSocket.setEncoding('utf8');
|
|
91
|
+
this._outSocket.connect(term.conout, function () {
|
|
92
|
+
// TODO: Emit event on agent instead of socket?
|
|
93
|
+
// Emit ready event.
|
|
94
|
+
_this._outSocket.emit('ready_datapipe');
|
|
95
|
+
});
|
|
96
|
+
this._inSocket = new net_1.Socket();
|
|
97
|
+
this._inSocket.setEncoding('utf8');
|
|
98
|
+
this._inSocket.connect(term.conin);
|
|
99
|
+
// TODO: Wait for ready event?
|
|
100
|
+
if (this._useConpty) {
|
|
101
|
+
var connect = this._ptyNative.connect(this._pty, commandLine, cwd, env, function (c) { return _this._$onProcessExit(c); });
|
|
102
|
+
this._innerPid = connect.pid;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "inSocket", {
|
|
106
|
+
get: function () { return this._inSocket; },
|
|
107
|
+
enumerable: false,
|
|
108
|
+
configurable: true
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "outSocket", {
|
|
111
|
+
get: function () { return this._outSocket; },
|
|
112
|
+
enumerable: false,
|
|
113
|
+
configurable: true
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "fd", {
|
|
116
|
+
get: function () { return this._fd; },
|
|
117
|
+
enumerable: false,
|
|
118
|
+
configurable: true
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "innerPid", {
|
|
121
|
+
get: function () { return this._innerPid; },
|
|
122
|
+
enumerable: false,
|
|
123
|
+
configurable: true
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "pty", {
|
|
126
|
+
get: function () { return this._pty; },
|
|
127
|
+
enumerable: false,
|
|
128
|
+
configurable: true
|
|
129
|
+
});
|
|
130
|
+
WindowsPtyAgent.prototype.resize = function (cols, rows) {
|
|
131
|
+
if (this._useConpty) {
|
|
132
|
+
if (this._exitCode !== undefined) {
|
|
133
|
+
throw new Error('Cannot resize a pty that has already exited');
|
|
134
|
+
}
|
|
135
|
+
this._ptyNative.resize(this._pty, cols, rows);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this._ptyNative.resize(this._pid, cols, rows);
|
|
139
|
+
};
|
|
140
|
+
WindowsPtyAgent.prototype.kill = function () {
|
|
141
|
+
var _this = this;
|
|
142
|
+
this._inSocket.readable = false;
|
|
143
|
+
this._inSocket.writable = false;
|
|
144
|
+
this._outSocket.readable = false;
|
|
145
|
+
this._outSocket.writable = false;
|
|
146
|
+
// Tell the agent to kill the pty, this releases handles to the process
|
|
147
|
+
if (this._useConpty) {
|
|
148
|
+
this._getConsoleProcessList().then(function (consoleProcessList) {
|
|
149
|
+
consoleProcessList.forEach(function (pid) {
|
|
150
|
+
try {
|
|
151
|
+
process.kill(pid);
|
|
152
|
+
}
|
|
153
|
+
catch (e) {
|
|
154
|
+
// Ignore if process cannot be found (kill ESRCH error)
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
_this._ptyNative.kill(_this._pty);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
this._ptyNative.kill(this._pid, this._innerPidHandle);
|
|
162
|
+
// Since pty.kill closes the handle it will kill most processes by itself
|
|
163
|
+
// and process IDs can be reused as soon as all handles to them are
|
|
164
|
+
// dropped, we want to immediately kill the entire console process list.
|
|
165
|
+
// If we do not force kill all processes here, node servers in particular
|
|
166
|
+
// seem to become detached and remain running (see
|
|
167
|
+
// Microsoft/vscode#26807).
|
|
168
|
+
var processList = this._ptyNative.getProcessList(this._pid);
|
|
169
|
+
processList.forEach(function (pid) {
|
|
170
|
+
try {
|
|
171
|
+
process.kill(pid);
|
|
172
|
+
}
|
|
173
|
+
catch (e) {
|
|
174
|
+
// Ignore if process cannot be found (kill ESRCH error)
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
WindowsPtyAgent.prototype._getConsoleProcessList = function () {
|
|
180
|
+
var _this = this;
|
|
181
|
+
return new Promise(function (resolve) {
|
|
182
|
+
var agent = child_process_1.fork(path.join(__dirname, 'conpty_console_list_agent'), [_this._innerPid.toString()]);
|
|
183
|
+
agent.on('message', function (message) {
|
|
184
|
+
clearTimeout(timeout);
|
|
185
|
+
resolve(message.consoleProcessList);
|
|
186
|
+
});
|
|
187
|
+
var timeout = setTimeout(function () {
|
|
188
|
+
// Something went wrong, just send back the shell PID
|
|
189
|
+
agent.kill();
|
|
190
|
+
resolve([_this._innerPid]);
|
|
191
|
+
}, 5000);
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "exitCode", {
|
|
195
|
+
get: function () {
|
|
196
|
+
if (this._useConpty) {
|
|
197
|
+
return this._exitCode;
|
|
198
|
+
}
|
|
199
|
+
return this._ptyNative.getExitCode(this._innerPidHandle);
|
|
200
|
+
},
|
|
201
|
+
enumerable: false,
|
|
202
|
+
configurable: true
|
|
203
|
+
});
|
|
204
|
+
WindowsPtyAgent.prototype._getWindowsBuildNumber = function () {
|
|
205
|
+
var osVersion = (/(\d+)\.(\d+)\.(\d+)/g).exec(os.release());
|
|
206
|
+
var buildNumber = 0;
|
|
207
|
+
if (osVersion && osVersion.length === 4) {
|
|
208
|
+
buildNumber = parseInt(osVersion[3]);
|
|
209
|
+
}
|
|
210
|
+
return buildNumber;
|
|
211
|
+
};
|
|
212
|
+
WindowsPtyAgent.prototype._generatePipeName = function () {
|
|
213
|
+
return "conpty-" + Math.random() * 10000000;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Triggered from the native side when a contpy process exits.
|
|
217
|
+
*/
|
|
218
|
+
WindowsPtyAgent.prototype._$onProcessExit = function (exitCode) {
|
|
219
|
+
var _this = this;
|
|
220
|
+
this._exitCode = exitCode;
|
|
221
|
+
this._flushDataAndCleanUp();
|
|
222
|
+
this._outSocket.on('data', function () { return _this._flushDataAndCleanUp(); });
|
|
223
|
+
};
|
|
224
|
+
WindowsPtyAgent.prototype._flushDataAndCleanUp = function () {
|
|
225
|
+
var _this = this;
|
|
226
|
+
if (this._closeTimeout) {
|
|
227
|
+
clearTimeout(this._closeTimeout);
|
|
228
|
+
}
|
|
229
|
+
this._closeTimeout = setTimeout(function () { return _this._cleanUpProcess(); }, FLUSH_DATA_INTERVAL);
|
|
230
|
+
};
|
|
231
|
+
WindowsPtyAgent.prototype._cleanUpProcess = function () {
|
|
232
|
+
this._inSocket.readable = false;
|
|
233
|
+
this._inSocket.writable = false;
|
|
234
|
+
this._outSocket.readable = false;
|
|
235
|
+
this._outSocket.writable = false;
|
|
236
|
+
this._outSocket.destroy();
|
|
237
|
+
};
|
|
238
|
+
return WindowsPtyAgent;
|
|
239
|
+
}());
|
|
240
|
+
exports.WindowsPtyAgent = WindowsPtyAgent;
|
|
241
|
+
// Convert argc/argv into a Win32 command-line following the escaping convention
|
|
242
|
+
// documented on MSDN (e.g. see CommandLineToArgvW documentation). Copied from
|
|
243
|
+
// winpty project.
|
|
244
|
+
function argsToCommandLine(file, args) {
|
|
245
|
+
if (isCommandLine(args)) {
|
|
246
|
+
if (args.length === 0) {
|
|
247
|
+
return file;
|
|
248
|
+
}
|
|
249
|
+
return argsToCommandLine(file, []) + " " + args;
|
|
250
|
+
}
|
|
251
|
+
var argv = [file];
|
|
252
|
+
Array.prototype.push.apply(argv, args);
|
|
253
|
+
var result = '';
|
|
254
|
+
for (var argIndex = 0; argIndex < argv.length; argIndex++) {
|
|
255
|
+
if (argIndex > 0) {
|
|
256
|
+
result += ' ';
|
|
257
|
+
}
|
|
258
|
+
var arg = argv[argIndex];
|
|
259
|
+
// if it is empty or it contains whitespace and is not already quoted
|
|
260
|
+
var hasLopsidedEnclosingQuote = xOr((arg[0] !== '"'), (arg[arg.length - 1] !== '"'));
|
|
261
|
+
var hasNoEnclosingQuotes = ((arg[0] !== '"') && (arg[arg.length - 1] !== '"'));
|
|
262
|
+
var quote = arg === '' ||
|
|
263
|
+
(arg.indexOf(' ') !== -1 ||
|
|
264
|
+
arg.indexOf('\t') !== -1) &&
|
|
265
|
+
((arg.length > 1) &&
|
|
266
|
+
(hasLopsidedEnclosingQuote || hasNoEnclosingQuotes));
|
|
267
|
+
if (quote) {
|
|
268
|
+
result += '\"';
|
|
269
|
+
}
|
|
270
|
+
var bsCount = 0;
|
|
271
|
+
for (var i = 0; i < arg.length; i++) {
|
|
272
|
+
var p = arg[i];
|
|
273
|
+
if (p === '\\') {
|
|
274
|
+
bsCount++;
|
|
275
|
+
}
|
|
276
|
+
else if (p === '"') {
|
|
277
|
+
result += repeatText('\\', bsCount * 2 + 1);
|
|
278
|
+
result += '"';
|
|
279
|
+
bsCount = 0;
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
result += repeatText('\\', bsCount);
|
|
283
|
+
bsCount = 0;
|
|
284
|
+
result += p;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
if (quote) {
|
|
288
|
+
result += repeatText('\\', bsCount * 2);
|
|
289
|
+
result += '\"';
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
result += repeatText('\\', bsCount);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
exports.argsToCommandLine = argsToCommandLine;
|
|
298
|
+
function isCommandLine(args) {
|
|
299
|
+
return typeof args === 'string';
|
|
300
|
+
}
|
|
301
|
+
function repeatText(text, count) {
|
|
302
|
+
var result = '';
|
|
303
|
+
for (var i = 0; i < count; i++) {
|
|
304
|
+
result += text;
|
|
305
|
+
}
|
|
306
|
+
return result;
|
|
307
|
+
}
|
|
308
|
+
function xOr(arg1, arg2) {
|
|
309
|
+
return ((arg1 && !arg2) || (!arg1 && arg2));
|
|
310
|
+
}
|
|
311
|
+
//# 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,2BAA6B;AAC7B,2BAA6B;AAE7B,+CAAqC;AAErC,IAAI,YAA2B,CAAC;AAChC,IAAI,YAA2B,CAAC;AAEhC;;;;GAIG;AACH,IAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B;;;GAGG;AACH;IAmBE,yBACE,IAAY,EACZ,IAAuB,EACvB,GAAa,EACb,GAAW,EACX,IAAY,EACZ,IAAY,EACZ,KAAc,E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AC,IAAI,EAAE,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC5C,MAAM,IAAI,GAAG,CAAC;gBACd,OAAO,GAAG,CAAC,CAAC;aACb;iBAAM;gBACL,MAAM,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;gBACpC,OAAO,GAAG,CAAC,CAAC;gBACZ,MAAM,IAAI,CAAC,CAAC;aACb;SACF;QACD,IAAI,KAAK,EAAE;YACT,MAAM,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC;YACxC,MAAM,IAAI,IAAI,CAAC;SAChB;aAAM;YACL,MAAM,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACrC;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAlDD,8CAkDC;AAED,SAAS,aAAa,CAAC,IAAuB;IAC5C,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC;AAClC,CAAC;AAED,SAAS,UAAU,CAAC,IAAY,EAAE,KAAa;IAC7C,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;QAC9B,MAAM,IAAI,IAAI,CAAC;KAChB;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,GAAG,CAAC,IAAa,EAAE,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
|