mirror of
https://github.com/simh/simh.git
synced 2026-01-14 07:39:29 +00:00
SCP: Flush stdout after writing command prompt
Possibly address problem discussed in #861
This commit is contained in:
parent
6a816001ef
commit
5b793198c6
5
scp.c
5
scp.c
@ -9516,13 +9516,16 @@ if (prompt) { /* interactive? */
|
||||
}
|
||||
else {
|
||||
printf ("%s", prompt); /* display prompt */
|
||||
fflush (stdout);
|
||||
cptr = fgets (cptr, size, stream); /* get cmd line */
|
||||
}
|
||||
}
|
||||
else cptr = fgets (cptr, size, stream); /* get cmd line */
|
||||
#else
|
||||
if (prompt) /* interactive? */
|
||||
if (prompt) { /* interactive? */
|
||||
printf ("%s", prompt); /* display prompt */
|
||||
fflush (stdout);
|
||||
}
|
||||
cptr = fgets (cptr, size, stream); /* get cmd line */
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user