Lines Matching refs:count_history
29 int count_history; variable
39 count_history = 0; in main_loop()
63 count_history++; in main_loop()
65 if (!count || current_command_index < count_history - 1) in main_loop()
66 count_history--; in main_loop()
69 strcpy(real_history_commands[count_history - 1], input_buffer); in main_loop()
70 count_history++; in main_loop()
72 for (int i = 0; i <= count_history - 2; i++) in main_loop()
74 current_command_index = count_history - 1; in main_loop()
128 if (current_command_index >= count_history - 1) in change_command()
131 if(count_history == 1) in change_command()
138 current_command_index = count_history - 2; in change_command()
160 if (count_history != 0 && key == 0xc8) in shell_readline()
171 if (count_history != 0 && key == 0x50) in shell_readline()
183 if (count > 0 && current_command_index >= count_history) in shell_readline()
187 count_history--; in shell_readline()
216 if (count > 0 && current_command_index >= count_history) in shell_readline()
218 memset(history_commands[count_history], 0, sizeof(history_commands[count_history])); in shell_readline()
219 strcpy(history_commands[count_history], buf); in shell_readline()