summaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-08-16 20:34:16 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-08-16 20:35:17 -0700
commitd0941ff83a870130575659a38af0edec3ee3bcb6 (patch)
tree6d19a1fcbef49b2255f790440b218fc6ca6364ac /tty.c
parentd0788eb8cf0d8795fd1140086d998913e4707c1f (diff)
tty_flush
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index be3e388..05edd76 100644
--- a/tty.c
+++ b/tty.c
@@ -78,3 +78,7 @@ void tty_printf(tty_t *tty, const char *fmt, ...){
va_end(args);
}
+void tty_flush(tty_t *tty){
+ fflush(tty->fout);
+}
+