You may want to decrease this parameter if your target machine
benefits from smaller stack usage.
-config FEATURE_EDITING_FANCY_KEYS
- bool "Additional editing keys"
- default n
- depends on FEATURE_EDITING
- help
- Enable additonal editing keys (Ctrl-E, Ctrl-U etc).
- Arrow keys, Home/End/Delete and Ctrl-W work even without this option.
-
config FEATURE_EDITING_VI
bool "vi-style line editing commands"
default n
goto_new_line();
break_out = 1;
break;
-#if ENABLE_FEATURE_EDITING_FANCY_KEYS
case CTRL('A'):
vi_case('0'|vbit:)
/* Control-a -- Beginning of line */
/* Control-b -- Move back one character */
input_backward(1);
break;
-#endif
case CTRL('C'):
vi_case(CTRL('C')|vbit:)
/* Control-c -- stop gathering input */
input_delete(0);
break;
-#if ENABLE_FEATURE_EDITING_FANCY_KEYS
case CTRL('E'):
vi_case('$'|vbit:)
/* Control-e -- End of line */
/* Control-f -- Move forward one character */
input_forward();
break;
-#endif
case '\b':
case '\x7f': /* DEL */
break;
#endif
-#if ENABLE_FEATURE_EDITING_FANCY_KEYS
case CTRL('K'):
/* Control-k -- clear to end of line */
command[cursor] = 0;
printf("\033[H");
redraw(0, command_len - cursor);
break;
-#endif
#if MAX_HISTORY > 0
case CTRL('N'):
break;
#endif
-#if ENABLE_FEATURE_EDITING_FANCY_KEYS
case CTRL('U'):
vi_case(CTRL('U')|vbit:)
/* Control-U -- Clear line before cursor */
redraw(cmdedit_y, command_len);
}
break;
-#endif
case CTRL('W'):
vi_case(CTRL('W')|vbit:)
/* Control-W -- Remove the last word */
# CONFIG_FEATURE_ETC_NETWORKS is not set
CONFIG_FEATURE_EDITING=y
CONFIG_FEATURE_EDITING_MAX_LEN=1024
-# CONFIG_FEATURE_EDITING_FANCY_KEYS is not set
# CONFIG_FEATURE_EDITING_VI is not set
CONFIG_FEATURE_EDITING_HISTORY=15
# CONFIG_FEATURE_EDITING_SAVEHISTORY is not set