3 * @author Lunaixsky (lunaxisky@qq.com)
4 * @brief Line controller slave that handle all non-POSIX control code or ANSI
9 * @copyright Copyright (c) 2023
13 #include <usr/lunaix/term.h>
15 #define CTRL_MNEMO(chr) (chr - 'A' + 1)
18 __ansi_actcontrol(struct term* termdev, struct linebuffer* lbuf, char chr)
20 struct rbuffer* cooked = lbuf->next;
24 rbuffer_put(cooked, '^');
30 return rbuffer_put(cooked, chr);
33 struct term_lcntl ansi_line_controller = { .process_and_put =