client: flush stdout after printing prompt
Apparently fgets() doesn't flush stdout in some libc implementations.
This commit is contained in:
parent
9603f0552a
commit
1d9d19d76b
1 changed files with 1 additions and 0 deletions
1
client.c
1
client.c
|
@ -125,6 +125,7 @@ read_line(void)
|
||||||
return( line );
|
return( line );
|
||||||
#else
|
#else
|
||||||
printf("%s", prompt);
|
printf("%s", prompt);
|
||||||
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (fgets(line, sizeof(line), stdin)) {
|
if (fgets(line, sizeof(line), stdin)) {
|
||||||
|
|
Loading…
Reference in a new issue