fixed cursor addressing limit checking
authorJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 2 Nov 2023 21:05:18 +0000 (23:05 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 2 Nov 2023 21:05:18 +0000 (23:05 +0200)
src/term.c

index 406c8d3..e14ed8b 100644 (file)
@@ -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;
                                }