Files
NetMesh/patches/node-pty+1.1.0.patch

18 lines
1.1 KiB
Diff
Raw Permalink Normal View History

diff --git a/node_modules/node-pty/src/win/conpty.cc b/node_modules/node-pty/src/win/conpty.cc
index 7b286d3..5423c8e 100644
--- a/node_modules/node-pty/src/win/conpty.cc
+++ b/node_modules/node-pty/src/win/conpty.cc
@@ -35 +35 @@ typedef HRESULT (__stdcall *PFNRESIZEPSEUDOCONSOLE)(HPCON hpc, COORD newSize);
-typedef HRESULT (__stdcall *PFNCLEARPSEUDOCONSOLE)(HPCON hpc);
+typedef HRESULT (__stdcall *PFNCLEARPSEUDOCONSOLE)(HPCON hpc, BOOL keepCursorRow);
@@ -526 +526 @@ static Napi::Value PtyClear(const Napi::CallbackInfo& info) {
- pfnClearPseudoConsole(handle->hpc);
+ pfnClearPseudoConsole(handle->hpc, TRUE);
diff --git a/node_modules/node-pty/src/win/conpty.h b/node_modules/node-pty/src/win/conpty.h
index 4cef31c..4f03a0c 100644
--- a/node_modules/node-pty/src/win/conpty.h
+++ b/node_modules/node-pty/src/win/conpty.h
@@ -33 +33 @@ CONPTY_EXPORT HRESULT WINAPI ConptyResizePseudoConsole(HPCON hPC, COORD size);
-CONPTY_EXPORT HRESULT WINAPI ConptyClearPseudoConsole(HPCON hPC);
+CONPTY_EXPORT HRESULT WINAPI ConptyClearPseudoConsole(HPCON hPC, BOOL keepCursorRow);