Lines Matching refs:cmd_buff_len
46 size_t line_length = sh->ctx->cmd_buff_len + z_shell_strlen(sh->ctx->prompt); in full_line_cmd()
77 sh->ctx->cmd_buff_len); in z_shell_op_cursor_position_synchronize()
105 sh->ctx->cmd_buff_len); in z_shell_op_cursor_move()
162 sh->ctx->cmd_buff_len, sign); in z_shell_op_cursor_word_move()
170 if ((sh->ctx->cmd_buff_len == 0) || in z_shell_op_word_remove()
195 sh->ctx->cmd_buff_len - chars_to_delete); in z_shell_op_word_remove()
196 sh->ctx->cmd_buff_len -= chars_to_delete; in z_shell_op_word_remove()
197 sh->ctx->cmd_buff[sh->ctx->cmd_buff_len] = '\0'; in z_shell_op_word_remove()
214 z_shell_op_cursor_move(sh, sh->ctx->cmd_buff_len - in z_shell_op_cursor_end_move()
227 if (sh->ctx->cmd_buff_pos < sh->ctx->cmd_buff_len) { in z_shell_op_right_arrow()
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()
272 if ((sh->ctx->cmd_buff_len + len) >= CONFIG_SHELL_CMD_BUFF_SIZE) { in data_insert()
278 sh->ctx->cmd_buff_len += len; in data_insert()
279 sh->ctx->cmd_buff[sh->ctx->cmd_buff_len] = '\0'; in data_insert()
309 (sh->ctx->cmd_buff_len != sh->ctx->cmd_buff_pos)) { in z_shell_op_char_insert()
318 if ((sh->ctx->cmd_buff_len == 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()
337 --sh->ctx->cmd_buff_len; in z_shell_op_char_delete()
343 sh->ctx->cmd_buff_len = sh->ctx->cmd_buff_pos; in z_shell_op_delete_from_cursor()
360 sh->ctx->cmd_buff_len); in z_shell_cmd_line_erase()