fix readline interrupts.
This commit is contained in:
parent
c03b5095a3
commit
0e262df2ee
@ -219,10 +219,10 @@ Yap_GetCharForSIGINT(void)
|
|||||||
{
|
{
|
||||||
int ch;
|
int ch;
|
||||||
/* ask for a new line */
|
/* ask for a new line */
|
||||||
fprintf(stderr, "Action (h for help): ");
|
Sfprintf(Serror, "\nAction (h for help): ");
|
||||||
ch = getc(stdin);
|
ch = Sgetchar();
|
||||||
/* first process up to end of line */
|
/* first process up to end of line */
|
||||||
while ((fgetc(stdin)) != '\n');
|
while ((Sfgetc(Sinput)) != '\n');
|
||||||
newline = TRUE;
|
newline = TRUE;
|
||||||
return ch;
|
return ch;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user