Lines Matching refs:cur
238 static uint8_t cur, end; variable
279 if (ansi_val > cur) { in handle_ansi()
284 cur -= ansi_val; in handle_ansi()
293 cur += ansi_val; in handle_ansi()
297 if (!cur) { in handle_ansi()
301 cursor_backward(cur); in handle_ansi()
302 end += cur; in handle_ansi()
303 cur = 0U; in handle_ansi()
311 cur += end; in handle_ansi()
320 del_char(&line[cur], --end); in handle_ansi()
417 if (cur + end < sizeof(cmd->line) - 1) { in handle_mcumgr()
418 cmd->line[cur++] = byte; in handle_mcumgr()
421 cmd->line[cur + end] = '\0'; in handle_mcumgr()
427 cur = 0U; in handle_mcumgr()
511 if (cur > 0) { in uart_console_isr()
512 del_char(&cmd->line[--cur], end); in uart_console_isr()
524 cmd->line[cur + end] = '\0'; in uart_console_isr()
527 cur = 0U; in uart_console_isr()
534 cur += completion_cb(cmd->line, cur); in uart_console_isr()
542 } else if (cur + end < sizeof(cmd->line) - 1) { in uart_console_isr()
543 insert_char(&cmd->line[cur++], byte, end); in uart_console_isr()