From: John Tsiombikas Date: Thu, 2 Nov 2023 21:05:18 +0000 (+0200) Subject: fixed cursor addressing limit checking X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=4643b1626b91e71b4531154bbdf3fdbc4c7f781e;p=termu fixed cursor addressing limit checking --- diff --git a/src/term.c b/src/term.c index 406c8d3..e14ed8b 100644 --- a/src/term.c +++ b/src/term.c @@ -40,7 +40,7 @@ static int proc_char(int c) if(isprint(c)) { printf(" %c", c); } else { - printf(" %x", (unsigned int)c); + printf(" %xh", (unsigned int)c); } fflush(stdout); */ @@ -61,7 +61,7 @@ static int proc_char(int c) } break; case 3: - if(c < ' ' || c > '7') { + if(c < ' ' || c > 'o') { clen = 0; return 0; }