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 +1 -1
- package/src/win/conpty.cc +9 -3
package/package.json
CHANGED
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(
|
|
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(
|
|
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(
|
|
529
|
+
PFNCLOSEPSEUDOCONSOLE const pfnClosePseudoConsole = (PFNCLOSEPSEUDOCONSOLE)GetProcAddress(
|
|
530
|
+
(HMODULE)hLibrary,
|
|
531
|
+
useConptyDll ? "ConptyClosePseudoConsole" : "ClosePseudoConsole");
|
|
526
532
|
if (pfnClosePseudoConsole)
|
|
527
533
|
{
|
|
528
534
|
pfnClosePseudoConsole(handle->hpc);
|