aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-04-09 18:24:05 +0000
committerErik Andersen <andersen@codepoet.org>2000-04-09 18:24:05 +0000
commitf3b3d17060fe6dffab3e1ff7de393bd0618334ba (patch)
treefc0675ba413d4c0ca645cd87c5bfc9b0cc8385e4 /shell
parent0817d1372c7278afdefa2d525e578bca51dd1c07 (diff)
downloadbusybox-w32-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.tar.gz
busybox-w32-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.tar.bz2
busybox-w32-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.zip
More minor patches
-Erik
Diffstat (limited to 'shell')
-rw-r--r--shell/cmdedit.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index b3e7fd58c..2c16276db 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -281,6 +281,14 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
281 if ((ret = read(inputFd, &c, 1)) < 1) 281 if ((ret = read(inputFd, &c, 1)) < 1)
282 return ret; 282 return ret;
283 283
284 fprintf(stderr, "\n\nkey=%d (%c)\n\n", c, c);
285 /* Go to the next line */
286 xwrite(outputFd, "\n", 1);
287 /* Rewrite the prompt */
288 xwrite(outputFd, prompt, strlen(prompt));
289 /* Rewrite the command */
290 xwrite(outputFd, parsenextc, len);
291
284 switch (c) { 292 switch (c) {
285 case 1: 293 case 1:
286 /* Control-a -- Beginning of line */ 294 /* Control-a -- Beginning of line */
@@ -514,10 +522,17 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
514 len--; 522 len--;
515 } 523 }
516 break; 524 break;
525
526 //case '5': case '6': /* pgup/pgdown */
527
528 case '7':
529 /* rxvt home */
517 case '1': 530 case '1':
518 /* Home (Ctrl-A) */ 531 /* Home (Ctrl-A) */
519 input_home(outputFd, &cursor); 532 input_home(outputFd, &cursor);
520 break; 533 break;
534 case '8':
535 /* rxvt END */
521 case '4': 536 case '4':
522 /* End (Ctrl-E) */ 537 /* End (Ctrl-E) */
523 input_end(outputFd, &cursor, len); 538 input_end(outputFd, &cursor, len);