From 1b523408dca3b86108c4512ced159532c10b02dd Mon Sep 17 00:00:00 2001 From: royqh1979 Date: Fri, 5 Nov 2021 21:35:05 +0800 Subject: [PATCH] - fix: ConsolePaurser.exe only exits when press ENTER --- NEWS.md | 3 +++ tools/ConsolePauser/main.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 55c01dc7..8f6a0dbd 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Version 0.8.1 For Dev-C++ 7 Beta + - fix: ConsolePaurser.exe only exits when press ENTER + Version 0.8 For Dev-C++ 7 Beta - fix: find in the current file is not correcly saved in the search history - fix: hit info not correctly displayed in the search result view diff --git a/tools/ConsolePauser/main.cpp b/tools/ConsolePauser/main.cpp index f4677676..6eef0780 100644 --- a/tools/ConsolePauser/main.cpp +++ b/tools/ConsolePauser/main.cpp @@ -5,6 +5,7 @@ using std::string; #include #include +#include #define MAX_COMMAND_LENGTH 32768 #define MAX_ERROR_LENGTH 2048 @@ -61,8 +62,8 @@ void PauseExit(int exitcode, bool reInp) { freopen("CONIN$","r",stdin); } printf("\n"); - printf("Press ANY key to continue...\n"); - getchar(); + printf("Press ANY key to exit...\n"); + getch(); if (reInp) { CloseHandle(hInp); }