git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: corner cases when printing large content through term interface
[lunaix-os.git]
/
lunaix-os
/
hal
/
term
/
lcntls
/
ansi_cntl.c
diff --git
a/lunaix-os/hal/term/lcntls/ansi_cntl.c
b/lunaix-os/hal/term/lcntls/ansi_cntl.c
index 112f719b7fc74298ce0fc640d69ef5553c07520d..778eb4b5d24d931a79f3ae51beb47bca097b6a64 100644
(file)
--- a/
lunaix-os/hal/term/lcntls/ansi_cntl.c
+++ b/
lunaix-os/hal/term/lcntls/ansi_cntl.c
@@
-22,12
+22,12
@@
__ansi_actcontrol(struct term* termdev, struct linebuffer* lbuf, char chr)
default:
if ((int)chr < 32) {
rbuffer_put(cooked, '^');
default:
if ((int)chr < 32) {
rbuffer_put(cooked, '^');
-
chr += 64
;
+
return rbuffer_put(cooked, chr += 64)
;
}
break;
}
}
break;
}
- return rbuffer_put(cooked, chr);
+ return rbuffer_put
_nof
(cooked, chr);
}
struct term_lcntl ansi_line_controller = {.process_and_put = __ansi_actcontrol};
\ No newline at end of file
}
struct term_lcntl ansi_line_controller = {.process_and_put = __ansi_actcontrol};
\ No newline at end of file