#define CTRL_MNEMO(chr) (chr - 'A' + 1)
-static inline size_t
+static inline int
__ansi_actcontrol(struct term* termdev, struct linebuffer* lbuf, char chr)
{
struct rbuffer* cooked = lbuf->next;
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
+struct term_lcntl ansi_line_controller = {.process_and_put = __ansi_actcontrol};
\ No newline at end of file