projects
/
termu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7b7af8
)
fixed cursor addressing limit checking
author
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 2 Nov 2023 21:05:18 +0000
(23:05 +0200)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 2 Nov 2023 21:05:18 +0000
(23:05 +0200)
src/term.c
patch
|
blob
|
history
diff --git
a/src/term.c
b/src/term.c
index
406c8d3
..
e14ed8b
100644
(file)
--- 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;
}