From d6ce2fa83cad7533ab16db9a79d9186f1fa87acd Mon Sep 17 00:00:00 2001 From: Chuck Coffing Date: Sat, 23 Dec 2023 19:34:56 -0800 Subject: [PATCH] Shrink tty routines, maybe make some faster --- elkscmd/tui/cons.c | 8 +++----- elkscmd/tui/tty-cp437.c | 28 +++++++++++++++++++++++----- elkscmd/tui/tty.c | 4 +--- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/elkscmd/tui/cons.c b/elkscmd/tui/cons.c index b34e10042..0092f6c3e 100644 --- a/elkscmd/tui/cons.c +++ b/elkscmd/tui/cons.c @@ -41,7 +41,7 @@ static void display(void) unsigned short __far *chattr = MK_FP(0xb800, 0); char buf[16]; - printf("\e[H"); + fputs("\e[H", stdout); for (r=0; r= '1' && p[8] <= '3'; #else return 0; #endif