node-pty 1.1.0-beta19 → 1.1.0-beta20

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "Microsoft Corporation"
6
6
  },
7
- "version": "1.1.0-beta19",
7
+ "version": "1.1.0-beta20",
8
8
  "license": "MIT",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./typings/node-pty.d.ts",
package/src/win/conpty.cc CHANGED
@@ -461,7 +461,9 @@ static Napi::Value PtyResize(const Napi::CallbackInfo& info) {
461
461
  bool fLoadedDll = hLibrary != nullptr;
462
462
  if (fLoadedDll)
463
463
  {
464
- PFNRESIZEPSEUDOCONSOLE const pfnResizePseudoConsole = (PFNRESIZEPSEUDOCONSOLE)GetProcAddress((HMODULE)hLibrary, "ConptyResizePseudoConsole");
464
+ PFNRESIZEPSEUDOCONSOLE const pfnResizePseudoConsole = (PFNRESIZEPSEUDOCONSOLE)GetProcAddress(
465
+ (HMODULE)hLibrary,
466
+ useConptyDll ? "ConptyResizePseudoConsole" : "ResizePseudoConsole");
465
467
  if (pfnResizePseudoConsole)
466
468
  {
467
469
  COORD size = {cols, rows};
@@ -491,7 +493,9 @@ static Napi::Value PtyClear(const Napi::CallbackInfo& info) {
491
493
  // bool fLoadedDll = hLibrary != nullptr;
492
494
  // if (fLoadedDll)
493
495
  // {
494
- // PFNCLEARPSEUDOCONSOLE const pfnClearPseudoConsole = (PFNCLEARPSEUDOCONSOLE)GetProcAddress((HMODULE)hLibrary, "ClearPseudoConsole");
496
+ // PFNCLEARPSEUDOCONSOLE const pfnClearPseudoConsole = (PFNCLEARPSEUDOCONSOLE)GetProcAddress(
497
+ // (HMODULE)hLibrary,
498
+ // useConptyDll ? "ConptyClearPseudoConsole" : "ClearPseudoConsole");
495
499
  // if (pfnClearPseudoConsole)
496
500
  // {
497
501
  // pfnClearPseudoConsole(handle->hpc);
@@ -522,7 +526,9 @@ static Napi::Value PtyKill(const Napi::CallbackInfo& info) {
522
526
  bool fLoadedDll = hLibrary != nullptr;
523
527
  if (fLoadedDll)
524
528
  {
525
- PFNCLOSEPSEUDOCONSOLE const pfnClosePseudoConsole = (PFNCLOSEPSEUDOCONSOLE)GetProcAddress((HMODULE)hLibrary, "ConptyClosePseudoConsole");
529
+ PFNCLOSEPSEUDOCONSOLE const pfnClosePseudoConsole = (PFNCLOSEPSEUDOCONSOLE)GetProcAddress(
530
+ (HMODULE)hLibrary,
531
+ useConptyDll ? "ConptyClosePseudoConsole" : "ClosePseudoConsole");
526
532
  if (pfnClosePseudoConsole)
527
533
  {
528
534
  pfnClosePseudoConsole(handle->hpc);