From f1bf0a483e917b67cf9db6483072db261f7688c3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 17 Feb 2026 03:45:41 -0500 Subject: Start welding the new UI code to the client. Compiles but doesn't work yet... --- src/conio.c.old | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/conio.c.old (limited to 'src/conio.c.old') diff --git a/src/conio.c.old b/src/conio.c.old new file mode 100644 index 0000000..2742ab6 --- /dev/null +++ b/src/conio.c.old @@ -0,0 +1,37 @@ +/** + * Simple conio for E: + */ + +#include +#include +#include "cio.h" + +void printl(const char* c, int l) +{ + OS.iocb[0].buffer=c; + OS.iocb[0].buflen=l; + OS.iocb[0].command=IOCB_PUTCHR; + ciov(); +} + +void printc(char* c) +{ + OS.iocb[0].buffer=c; + OS.iocb[0].buflen=1; + OS.iocb[0].command=IOCB_PUTCHR; + ciov(); +} + +void print(const char* c) +{ + int l=strlen(c); + printl(c,l); +} + +void get_line(char* buf, unsigned char len) +{ + OS.iocb[0].buffer=buf; + OS.iocb[0].buflen=len; + OS.iocb[0].command=IOCB_GETREC; + ciov(); +} -- cgit v1.2.3