Lines Matching +full:0 +full:x1b
92 if (pm_device_runtime_get(uart_console_dev) < 0) { in console_out()
121 #define BS 0x08
122 #define ESC 0x1b
123 #define DEL 0x7f
141 if (rx < 0) { in read_uart()
153 printk("\x1b[%uC", count); in cursor_forward()
158 printk("\x1b[%uD", count); in cursor_backward()
163 printk("\x1b[s"); in cursor_save()
168 printk("\x1b[u"); in cursor_restore()
178 if (end == 0U) { in insert_char()
188 while (end-- > 0) { in insert_char()
203 if (end == 0U) { in del_char()
211 while (end-- > 0) { in del_char()
243 if (isdigit(byte) == 0) { in handle_ansi()
249 ansi_val = byte - '0'; in handle_ansi()
250 ansi_val_2 = 0U; in handle_ansi()
255 if (isdigit(byte) != 0) { in handle_ansi()
258 ansi_val_2 += byte - '0'; in handle_ansi()
261 ansi_val += byte - '0'; in handle_ansi()
303 cur = 0U; in handle_ansi()
312 end = 0U; in handle_ansi()
409 cmd->is_mcumgr = 0; in handle_mcumgr()
421 cmd->line[cur + end] = '\0'; in handle_mcumgr()
427 cur = 0U; in handle_mcumgr()
428 end = 0U; in handle_mcumgr()
440 static uint8_t last_char = '\0'; in uart_console_isr()
442 while (uart_irq_update(uart_console_dev) > 0 && in uart_console_isr()
443 uart_irq_is_pending(uart_console_dev) > 0) { in uart_console_isr()
449 if (rx < 0) { in uart_console_isr()
453 if (rx == 0) { in uart_console_isr()
460 if (rx < 0) { in uart_console_isr()
465 if (debug_hook_in != NULL && debug_hook_in(byte) != 0) { in uart_console_isr()
507 if (isprint(byte) == 0) { in uart_console_isr()
511 if (cur > 0) { in uart_console_isr()
524 cmd->line[cur + end] = '\0'; in uart_console_isr()
527 cur = 0U; in uart_console_isr()
528 end = 0U; in uart_console_isr()
560 while (uart_irq_rx_ready(uart_console_dev) > 0) { in console_input_init()
604 * @return 0 if successful, otherwise failed.
614 return 0; in uart_console_init()