summaryrefslogtreecommitdiff
path: root/shell/cmdedit.c
diff options
context:
space:
mode:
authorErik Andersen2000-04-09 18:24:05 +0000
committerErik Andersen2000-04-09 18:24:05 +0000
commitf3b3d17060fe6dffab3e1ff7de393bd0618334ba (patch)
treefc0675ba413d4c0ca645cd87c5bfc9b0cc8385e4 /shell/cmdedit.c
parent0817d1372c7278afdefa2d525e578bca51dd1c07 (diff)
downloadbusybox-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.zip
busybox-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.tar.gz
More minor patches
-Erik
Diffstat (limited to 'shell/cmdedit.c')
-rw-r--r--shell/cmdedit.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index b3e7fd5..2c16276 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -281,6 +281,14 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
if ((ret = read(inputFd, &c, 1)) < 1)
return ret;
+ fprintf(stderr, "\n\nkey=%d (%c)\n\n", c, c);
+ /* Go to the next line */
+ xwrite(outputFd, "\n", 1);
+ /* Rewrite the prompt */
+ xwrite(outputFd, prompt, strlen(prompt));
+ /* Rewrite the command */
+ xwrite(outputFd, parsenextc, len);
+
switch (c) {
case 1:
/* Control-a -- Beginning of line */
@@ -514,10 +522,17 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
len--;
}
break;
+
+ //case '5': case '6': /* pgup/pgdown */
+
+ case '7':
+ /* rxvt home */
case '1':
/* Home (Ctrl-A) */
input_home(outputFd, &cursor);
break;
+ case '8':
+ /* rxvt END */
case '4':
/* End (Ctrl-E) */
input_end(outputFd, &cursor, len);