fix flushing bug
This commit is contained in:
parent
a6451e4904
commit
79e380eddb
1 changed files with 1 additions and 1 deletions
|
@ -51,9 +51,9 @@ int main(int argc, char *argv[]) {
|
||||||
int newline = 1;
|
int newline = 1;
|
||||||
while (1) {
|
while (1) {
|
||||||
// todo: separate into functions
|
// todo: separate into functions
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
if (newline) {
|
if (newline) {
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
fgets(command, MAX_BUF_LENGTH - 1, stdin);
|
fgets(command, MAX_BUF_LENGTH - 1, stdin);
|
||||||
|
|
Loading…
Reference in a new issue