From bfacd885f6f32e2f1445bcab8b35d4ba148b3d15 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 31 Jul 2019 13:34:22 -0400 Subject: Update ingest terminal --- ingest.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ingest.c') diff --git a/ingest.c b/ingest.c index 27035af..abb7451 100644 --- a/ingest.c +++ b/ingest.c @@ -78,7 +78,14 @@ int main(void) { maxClient--; } - // TODO: Update local terminal. + ssize_t pos = 0; + while (pos < rlen) { + wchar_t ch; + int n = mbtowc(&ch, &buf[pos], rlen - pos); + if (n <= 0) break; + termUpdate(ch); + pos += n; + } } if (fds[1].revents) { -- cgit 1.4.1