Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5f9778
)
Fixed help prompt not displaying properly
author
Bryce Lanham
<blanham@gmail.com>
Tue, 11 Feb 2014 07:27:30 +0000
(
01:27
-0600)
committer
Bryce Lanham
<blanham@gmail.com>
Tue, 11 Feb 2014 07:27:30 +0000
(
01:27
-0600)
As with the other prompt, the help prompt needed a call to fflush
src/dumb/dumb_input.c
patch
|
blob
|
history
diff --git
a/src/dumb/dumb_input.c
b/src/dumb/dumb_input.c
index 2a3212c40722ba66c78acc65893e846f95017a81..0d657b58cfe8206ad0657520708a64e8627ff3c9 100644
(file)
--- a/
src/dumb/dumb_input.c
+++ b/
src/dumb/dumb_input.c
@@
-270,6
+270,7
@@
static bool dumb_read_line(char *s, char *prompt, bool show_cursor,
if (!*current_page)
break;
printf("HELP: Type <return> for more, or q <return> to stop: ");
+ fflush(stdout);
dumb_getline(s);
if (!strcmp(s, "q\n"))
break;