X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1375eb51603466b723ab7dd1ca4194ee5d662f75..b60166b327a9108b07e3069fa6568a451529ffd9:/lunaix-os/hal/term/lcntls/ansi_cntl.c?ds=sidebyside diff --git a/lunaix-os/hal/term/lcntls/ansi_cntl.c b/lunaix-os/hal/term/lcntls/ansi_cntl.c index 112f719..778eb4b 100644 --- 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, '^'); - chr += 64; + return rbuffer_put(cooked, chr += 64); } 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