Lines Matching refs:cmd_buff_pos
58 return (((sh->ctx->cmd_buff_pos * sh->ctx->cfg.flags.echo) + in z_shell_cursor_in_empty_line()
76 z_shell_multiline_data_calc(cons, sh->ctx->cmd_buff_pos, in z_shell_op_cursor_position_synchronize()
100 uint16_t new_pos = sh->ctx->cmd_buff_pos + val; in z_shell_op_cursor_move()
104 z_shell_multiline_data_calc(cons, sh->ctx->cmd_buff_pos, in z_shell_op_cursor_move()
110 sh->ctx->cmd_buff_pos, in z_shell_op_cursor_move()
114 sh->ctx->cmd_buff_pos, in z_shell_op_cursor_move()
119 sh->ctx->cmd_buff_pos = new_pos; in z_shell_op_cursor_move()
161 sh->ctx->cmd_buff_pos, in z_shell_op_cursor_word_move()
171 (sh->ctx->cmd_buff_pos == 0)) { in z_shell_op_word_remove()
175 char *str = &sh->ctx->cmd_buff[sh->ctx->cmd_buff_pos - 1]; in z_shell_op_word_remove()
209 z_shell_op_cursor_move(sh, -sh->ctx->cmd_buff_pos); in z_shell_op_cursor_home_move()
215 sh->ctx->cmd_buff_pos); in z_shell_op_cursor_end_move()
220 if (sh->ctx->cmd_buff_pos > 0) { in z_shell_op_left_arrow()
227 if (sh->ctx->cmd_buff_pos < sh->ctx->cmd_buff_len) { in z_shell_op_right_arrow()
247 int len = strlen(&sh->ctx->cmd_buff[sh->ctx->cmd_buff_pos]); in reprint_from_cursor()
254 &sh->ctx->cmd_buff[sh->ctx->cmd_buff_pos]); in reprint_from_cursor()
256 sh->ctx->cmd_buff_pos = sh->ctx->cmd_buff_len; in reprint_from_cursor()
269 uint16_t after = sh->ctx->cmd_buff_len - sh->ctx->cmd_buff_pos; in data_insert()
270 char *curr_pos = &sh->ctx->cmd_buff[sh->ctx->cmd_buff_pos]; in data_insert()
282 sh->ctx->cmd_buff_pos += len; in data_insert()
291 sh->ctx->cmd_buff[sh->ctx->cmd_buff_pos++] = data; in char_replace()
309 (sh->ctx->cmd_buff_len != sh->ctx->cmd_buff_pos)) { in z_shell_op_char_insert()
319 (sh->ctx->cmd_buff_pos == 0)) { in z_shell_op_char_backspace()
329 uint16_t diff = sh->ctx->cmd_buff_len - sh->ctx->cmd_buff_pos; in z_shell_op_char_delete()
330 char *str = &sh->ctx->cmd_buff[sh->ctx->cmd_buff_pos]; in z_shell_op_char_delete()
343 sh->ctx->cmd_buff_len = sh->ctx->cmd_buff_pos; in z_shell_op_delete_from_cursor()
344 sh->ctx->cmd_buff[sh->ctx->cmd_buff_pos] = '\0'; in z_shell_op_delete_from_cursor()
359 sh->ctx->cmd_buff_pos, in z_shell_cmd_line_erase()