From 6b5ff701e8e901c0e78e422d8e72386174bdc01a Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 2 May 2019 08:39:40 -0700 Subject: [PATCH] Restore default ctrl+c handler in conpty support Part of Microsoft/vscode#72629 --- src/win/conpty.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win/conpty.cc b/src/win/conpty.cc index 1b5a74949..9b4c58a2c 100644 --- a/src/win/conpty.cc +++ b/src/win/conpty.cc @@ -198,6 +198,9 @@ static NAN_METHOD(PtyStartProcess) { HPCON hpc; HRESULT hr = CreateNamedPipesAndPseudoConsole({cols, rows}, 0, &hIn, &hOut, &hpc, inName, outName, pipeName); + // Restore default handling of ctrl+c + SetConsoleCtrlHandler(NULL, FALSE); + // Set return values marshal = Nan::New();