Lines Matching refs:input_line_active
313 shell_puts(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset + 1); in handle_delete_key()
318 memcpy_erms(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset, in handle_delete_key()
319 p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset + 1, delta); 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()
347 if (p_shell->to_select_index != p_shell->input_line_active) { in handle_updown_key()
353 if (current_select != p_shell->input_line_active) { in handle_updown_key()
357 …p_shell->buffered_line[current_select], p_shell->buffered_line[p_shell->input_line_active]) != 0) { in handle_updown_key()
360 shell_puts(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset); in handle_updown_key()
368 memcpy_s(p_shell->buffered_line[p_shell->input_line_active], SHELL_CMD_MAX_LEN, in handle_updown_key()
397 shell_puts(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset); in shell_handle_special_char()
410 shell_puts(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset); in shell_handle_special_char()
449 shell_puts(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset); in handle_backspace_key()
453 memcpy_erms(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset - 1, in handle_backspace_key()
454 p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset, delta); 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()
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()
476 p_shell->buffered_line[p_shell->input_line_active][p_shell->cursor_offset] = ch; in handle_input_char()
479 shell_puts(p_shell->buffered_line[p_shell->input_line_active] + p_shell->cursor_offset); in handle_input_char()
601 p_input_line = p_shell->buffered_line[p_shell->input_line_active]; in shell_process()
603 former_index = (p_shell->input_line_active + MAX_BUFFERED_CMDS - 1) % MAX_BUFFERED_CMDS; in shell_process()
608 p_shell->input_line_active = (p_shell->input_line_active + 1) % MAX_BUFFERED_CMDS; in shell_process()
611 p_shell->to_select_index = p_shell->input_line_active; in shell_process()
617 (void)memset(p_shell->buffered_line[p_shell->input_line_active], 0, SHELL_CMD_MAX_LEN + 1U); in shell_process()
659 (void)memset(p_shell->buffered_line[p_shell->input_line_active], 0U, SHELL_CMD_MAX_LEN + 1U); in shell_init()