flush
This commit is contained in:
parent
9f2ba2d4fb
commit
f54e11db94
@ -235,6 +235,7 @@ int Yap_GetCharForSIGINT(void) {
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
LOCAL_newline = TRUE;
|
LOCAL_newline = TRUE;
|
||||||
|
fflush(NULL);
|
||||||
return ch;
|
return ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,6 +458,7 @@ int Yap_ReadlineForSIGINT(void) {
|
|||||||
ch = myrl_line[0];
|
ch = myrl_line[0];
|
||||||
free((void *)myrl_line);
|
free((void *)myrl_line);
|
||||||
myrl_line = NULL;
|
myrl_line = NULL;
|
||||||
|
fflush(NULL);
|
||||||
return ch;
|
return ch;
|
||||||
} else {
|
} else {
|
||||||
myrl_line = (const unsigned char *)readline("Action (h for help): ");
|
myrl_line = (const unsigned char *)readline("Action (h for help): ");
|
||||||
@ -468,6 +469,7 @@ int Yap_ReadlineForSIGINT(void) {
|
|||||||
ch = myrl_line[0];
|
ch = myrl_line[0];
|
||||||
free((void *)myrl_line);
|
free((void *)myrl_line);
|
||||||
myrl_line = NULL;
|
myrl_line = NULL;
|
||||||
|
fflush(NULL);
|
||||||
return ch;
|
return ch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user