Lines Matching refs:input_line_len
305 if (p_shell->cursor_offset < p_shell->input_line_len) { in handle_delete_key()
307 uint32_t delta = p_shell->input_line_len - p_shell->cursor_offset - 1; in handle_delete_key()
322 p_shell->buffered_line[p_shell->input_line_active][p_shell->input_line_len - 1] = 0; in handle_delete_key()
325 p_shell->input_line_len--; in handle_delete_key()
359 if (p_shell->cursor_offset < p_shell->input_line_len) { in handle_updown_key()
363 clear_input_line(p_shell->input_line_len); in handle_updown_key()
370 p_shell->input_line_len = len; in handle_updown_key()
396 if (p_shell->cursor_offset < p_shell->input_line_len) { in shell_handle_special_char()
399 set_cursor_pos(p_shell->input_line_len - p_shell->cursor_offset); in shell_handle_special_char()
409 if (p_shell->cursor_offset < p_shell->input_line_len) { in shell_handle_special_char()
411 p_shell->cursor_offset = p_shell->input_line_len; in shell_handle_special_char()
445 if (p_shell->cursor_offset < p_shell->input_line_len) { in handle_backspace_key()
446 uint32_t delta = p_shell->input_line_len - p_shell->cursor_offset; in handle_backspace_key()
458 p_shell->buffered_line[p_shell->input_line_active][p_shell->input_line_len - 1] = 0; in handle_backspace_key()
461 p_shell->input_line_len--; in handle_backspace_key()
468 uint32_t delta = p_shell->input_line_len - p_shell->cursor_offset; in handle_input_char()
472 …memcpy_erms_backwards(p_shell->buffered_line[p_shell->input_line_active] + p_shell->input_line_len, in handle_input_char()
473 p_shell->buffered_line[p_shell->input_line_active] + p_shell->input_line_len - 1, delta); in handle_input_char()
483 p_shell->input_line_len++; in handle_input_char()
510 p_shell->input_line_len = 0U; in shell_input_line()
522 if (p_shell->input_line_len < SHELL_CMD_MAX_LEN) { in shell_input_line()
538 p_shell->input_line_len = 0U; in shell_input_line()