summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ingest.c9
1 files changed, 8 insertions, 1 deletions
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) {