tFlush stdout when done printing - sacc - sacc(omys), simple console gopher client (mirror) (HTM) git clone https://git.parazyd.org/sacc (DIR) Log (DIR) Files (DIR) Refs (DIR) LICENSE --- (DIR) commit b5c402515b3273d7889236698fea95dd57190326 (DIR) parent 7917802325a6f61b516986192096781c27e3bba9 (HTM) Author: Quentin Rameau <quinq@fifth.space> 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(-) --- (DIR) diff --git a/ui_ti.c b/ui_ti.c t@@ -83,6 +83,7 @@ display(Item *item) } putp(tparm(restore_cursor)); + fflush(stdout); } static void t@@ -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 * (DIR) diff --git a/ui_txt.c b/ui_txt.c t@@ -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');