diff options
Diffstat (limited to '')
-rw-r--r-- | ingest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ingest.c b/ingest.c index 67328a8..3991adc 100644 --- a/ingest.c +++ b/ingest.c @@ -29,7 +29,7 @@ #include <unistd.h> #include <wchar.h> -#include "stream.h" +#include "term.h" int main(void) { int error; @@ -37,7 +37,7 @@ int main(void) { // TODO: Read info from file. const char *path = "example.sock"; - termInit(24, 80); + struct Term *term = termAlloc(24, 80); int server = socket(PF_LOCAL, SOCK_STREAM, 0); if (server < 0) err(EX_OSERR, "socket"); @@ -90,7 +90,7 @@ int main(void) { wchar_t ch; int n = mbtowc(&ch, &buf[pos], rlen - pos); if (n <= 0) break; - termUpdate(ch); + termUpdate(term, ch); pos += n; } } @@ -107,7 +107,7 @@ int main(void) { continue; } - error = termSnapshot(client); + error = termSnapshot(term, client); if (error) { close(client); continue; |