Flush stdout when done printing - sacc - sacc(omys), simple console gopher clie… | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit b5c402515b3273d7889236698fea95dd57190326 | |
parent 7917802325a6f61b516986192096781c27e3bba9 | |
Author: Quentin Rameau <[email protected]> | |
Date: Fri, 30 Jun 2017 23:25:02 +0200 | |
Flush stdout when done printing | |
Diffstat: | |
M ui_ti.c | 2 ++ | |
M ui_txt.c | 1 + | |
2 files changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/ui_ti.c b/ui_ti.c | |
@@ -83,6 +83,7 @@ display(Item *item) | |
} | |
putp(tparm(restore_cursor)); | |
+ fflush(stdout); | |
} | |
static void | |
@@ -133,6 +134,7 @@ movecurline(Item *item, int l) | |
putp(tparm(enter_standout_mode)); | |
printitem(item->dir->items[curline]); | |
putp(tparm(exit_standout_mode)); | |
+ fflush(stdout); | |
} | |
Item * | |
diff --git a/ui_txt.c b/ui_txt.c | |
@@ -83,6 +83,7 @@ selectitem(Item *entry) | |
do { | |
printf("%d items (h for help): ", nitems); | |
+ fflush(stdout); | |
if (!fgets(buf, sizeof(buf), stdin)) { | |
putchar('\n'); |