1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

If terminating interactive input to the command-line shell with ^D, issue

an extra \n to move the cursor to the next line before exiting.

FossilOrigin-Name: feff1ef0b8f7b51ae80a9d34380b46a5103bf6cd
This commit is contained in:
drh
2012-04-21 11:33:39 +00:00
parent 6a36f43586
commit 9b8d3572a9
4 changed files with 1963 additions and 9 deletions

View File

@@ -2572,7 +2572,9 @@ static int process_input(struct callback_data *p, FILE *in){
free(zLine);
zLine = one_input_line(zSql, in);
if( zLine==0 ){
break; /* We have reached EOF */
/* End of input */
if( stdin_is_interactive ) printf("\n");
break;
}
if( seenInterrupt ){
if( in!=0 ) break;