This commit is contained in:
Vitor Santos Costa 2016-05-16 11:21:54 +01:00
parent 9f2ba2d4fb
commit f54e11db94
2 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,7 @@ int Yap_GetCharForSIGINT(void) {
;
}
LOCAL_newline = TRUE;
fflush(NULL);
return ch;
}

View File

@ -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): ");
@ -468,6 +469,7 @@ int Yap_ReadlineForSIGINT(void) {
ch = myrl_line[0];
free((void *)myrl_line);
myrl_line = NULL;
fflush(NULL);
return ch;
}
}