diff options
author | drh <> | 2024-09-25 11:27:59 +0000 |
---|---|---|
committer | drh <> | 2024-09-25 11:27:59 +0000 |
commit | 38b4158abae426f2efc610e4c7916931d8e03da1 (patch) | |
tree | ec3bb68190ef52735aedc909d21f802e1d6faed1 /src | |
parent | 8f1f9ef09f20fbdb00a2ffac4c807cbce817b83d (diff) | |
download | sqlite-38b4158abae426f2efc610e4c7916931d8e03da1.tar.gz sqlite-38b4158abae426f2efc610e4c7916931d8e03da1.zip |
Use sqlite3_fgets() instead of fgetc() to end the startup debugging pause
in the CLI.
FossilOrigin-Name: 869b3c05e852a797b5801a81d30a1f7955c31afad0274327f7af2284b555f23a
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index cdcba084d..667f3e2d1 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -12672,10 +12672,11 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){ #if !defined(_WIN32_WCE) if( getenv("SQLITE_DEBUG_BREAK") ){ if( isatty(0) && isatty(2) ){ + char zLine[100]; sqlite3_fprintf(stderr, - "attach debugger to process %d and press any key to continue.\n", + "attach debugger to process %d and press ENTER to continue...", GETPID()); - fgetc(stdin); + sqlite3_fgets(zLine, sizeof(zLine), stdin); }else{ #if defined(_WIN32) || defined(WIN32) #if SQLITE_OS_WINRT |