summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-05-03 03:30:13 -0700
committerJohn Hawthorn <john@hawthorn.email>2019-08-16 01:05:01 -0700
commitc4524ae7aaa85f1569d6be1a8538b3650bc06f89 (patch)
tree326bc7c96be446cba02b99f7dad3e6b9e08aad39 /src/tty.c
parenta318e00e30df4056c78ff4edf38376feb4d57dab (diff)
Add ability to use null as input delimiter.
Update tty to print newline as space Add tty_putc
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tty.c b/src/tty.c
index f8de9f5..733477e 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -184,6 +184,10 @@ void tty_printf(tty_t *tty, const char *fmt, ...) {
va_end(args);
}
+void tty_putc(tty_t *tty, char c) {
+ fputc(c, tty->fout);
+}
+
void tty_flush(tty_t *tty) {
fflush(tty->fout);
}