summaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorPaul Fox2008-01-18 20:41:24 +0000
committerPaul Fox2008-01-18 20:41:24 +0000
commit518d8dd97949be5303a405bedd26d0f325854c84 (patch)
tree5c14e2e97d6abd7df39fbe3897d4f5ec720a7fc9 /libbb/lineedit.c
parent52432f2b06c28038fbe60f0eed80905ac7ff7ee5 (diff)
downloadbusybox-518d8dd97949be5303a405bedd26d0f325854c84.zip
busybox-518d8dd97949be5303a405bedd26d0f325854c84.tar.gz
eliminated CONFIG_FEATURE_EDITING_FANCY_KEYS. the size savings
was small, compared to the total size of the command-line editing features, and it removed key bindings that most wouldn't consider "fancy", like ^U, and 'l' and 'h' in vi mode, ^F and ^B in emacs mode.
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index cbe2bb9..d3ee738 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1423,7 +1423,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
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 */
@@ -1436,7 +1435,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
/* Control-b -- Move back one character */
input_backward(1);
break;
-#endif
case CTRL('C'):
vi_case(CTRL('C')|vbit:)
/* Control-c -- stop gathering input */
@@ -1457,7 +1455,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
input_delete(0);
break;
-#if ENABLE_FEATURE_EDITING_FANCY_KEYS
case CTRL('E'):
vi_case('$'|vbit:)
/* Control-e -- End of line */
@@ -1469,7 +1466,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
/* Control-f -- Move forward one character */
input_forward();
break;
-#endif
case '\b':
case '\x7f': /* DEL */
@@ -1483,7 +1479,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
break;
#endif
-#if ENABLE_FEATURE_EDITING_FANCY_KEYS
case CTRL('K'):
/* Control-k -- clear to end of line */
command[cursor] = 0;
@@ -1496,7 +1491,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
printf("\033[H");
redraw(0, command_len - cursor);
break;
-#endif
#if MAX_HISTORY > 0
case CTRL('N'):
@@ -1518,7 +1512,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
break;
#endif
-#if ENABLE_FEATURE_EDITING_FANCY_KEYS
case CTRL('U'):
vi_case(CTRL('U')|vbit:)
/* Control-U -- Clear line before cursor */
@@ -1528,7 +1521,6 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
redraw(cmdedit_y, command_len);
}
break;
-#endif
case CTRL('W'):
vi_case(CTRL('W')|vbit:)
/* Control-W -- Remove the last word */