- fix: ConsolePaurser.exe only exits when press ENTER

This commit is contained in:
royqh1979 2021-11-05 21:35:05 +08:00
parent 62a73a27dd
commit 1b523408dc
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -5,6 +5,7 @@
using std::string;
#include <stdio.h>
#include <windows.h>
#include <conio.h>
#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);
}