Lines Matching refs:cmdbuf_len
20 static int cmdbuf_len = 0; variable
51 for (i = 0; i < cmdbuf_len + 2 + (ps2 ? (int) os_strlen(ps2) : 0); i++) in edit_clear_line()
65 cmdbuf_pos = cmdbuf_len; in move_end()
81 if (cmdbuf_pos < cmdbuf_len) { in move_right()
100 while (cmdbuf_pos < cmdbuf_len && cmdbuf[cmdbuf_pos] == ' ') in move_word_right()
102 while (cmdbuf_pos < cmdbuf_len && cmdbuf[cmdbuf_pos] != ' ') in move_word_right()
115 cmdbuf_len - cmdbuf_pos); in delete_left()
117 cmdbuf_len--; in delete_left()
124 if (cmdbuf_pos == cmdbuf_len) in delete_current()
129 cmdbuf_len - cmdbuf_pos); in delete_current()
130 cmdbuf_len--; in delete_current()
145 os_memmove(cmdbuf + pos, cmdbuf + cmdbuf_pos, cmdbuf_len - cmdbuf_pos); in delete_word()
146 cmdbuf_len -= cmdbuf_pos - pos; in delete_word()
158 os_memmove(cmdbuf, cmdbuf + cmdbuf_pos, cmdbuf_len - cmdbuf_pos); in clear_left()
159 cmdbuf_len -= cmdbuf_pos; in clear_left()
167 if (cmdbuf_pos == cmdbuf_len) in clear_right()
171 cmdbuf_len = cmdbuf_pos; in clear_right()
218 cmdbuf_len = cmdbuf_pos = os_strlen(history_curr->str); in history_use()
219 os_memcpy(cmdbuf, history_curr->str, cmdbuf_len); in history_use()
232 cmdbuf[cmdbuf_len] = '\0'; in history_prev()
233 os_memcpy(currbuf, cmdbuf, cmdbuf_len + 1); in history_prev()
258 cmdbuf_len = cmdbuf_pos = os_strlen(currbuf); in history_next()
259 os_memcpy(cmdbuf, currbuf, cmdbuf_len); in history_next()
329 if (cmdbuf_len >= (int) sizeof(cmdbuf) - 1) in insert_char()
331 if (cmdbuf_len == cmdbuf_pos) { in insert_char()
333 cmdbuf_len++; in insert_char()
338 cmdbuf_len - cmdbuf_pos); in insert_char()
340 cmdbuf_len++; in insert_char()
349 if (cmdbuf_len == 0) { in process_cmd()
355 cmdbuf[cmdbuf_len] = '\0'; in process_cmd()
358 cmdbuf_len = 0; in process_cmd()
436 cmdbuf[cmdbuf_len] = '\0'; in complete()
469 room = sizeof(cmdbuf) - 1 - cmdbuf_len; in complete()
475 cmdbuf_len - cmdbuf_pos); in complete()
481 cmdbuf_len += len + add_space; in complete()
922 cmdbuf_len = os_strlen(cmdbuf); in search_stop()
923 cmdbuf_pos = cmdbuf_len; in search_stop()
1070 if (cmdbuf_len > 0) { in edit_read_char()
1165 cmdbuf[cmdbuf_len] = '\0'; in edit_redraw()
1167 if (cmdbuf_pos != cmdbuf_len) { in edit_redraw()