Skip to content

Commit

Permalink
flush
Browse files Browse the repository at this point in the history
  • Loading branch information
vscosta committed May 16, 2016
1 parent 9f2ba2d commit f54e11d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions os/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ int Yap_GetCharForSIGINT(void) {
;
}
LOCAL_newline = TRUE;
fflush(NULL);
return ch;
}

Expand Down
2 changes: 2 additions & 0 deletions os/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ int Yap_ReadlineForSIGINT(void) {
ch = myrl_line[0];
free((void *)myrl_line);
myrl_line = NULL;
fflush(NULL);
return ch;
} else {
myrl_line = (const unsigned char *)readline("Action (h for help): ");
Expand All @@ -468,6 +469,7 @@ int Yap_ReadlineForSIGINT(void) {
ch = myrl_line[0];
free((void *)myrl_line);
myrl_line = NULL;
fflush(NULL);
return ch;
}
}
Expand Down

0 comments on commit f54e11d

Please sign in to comment.