diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-09 18:24:05 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-09 18:24:05 +0000 |
commit | f3b3d17060fe6dffab3e1ff7de393bd0618334ba (patch) | |
tree | fc0675ba413d4c0ca645cd87c5bfc9b0cc8385e4 | |
parent | 0817d1372c7278afdefa2d525e578bca51dd1c07 (diff) | |
download | busybox-w32-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.tar.gz busybox-w32-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.tar.bz2 busybox-w32-f3b3d17060fe6dffab3e1ff7de393bd0618334ba.zip |
More minor patches
-Erik
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | busybox.def.h | 2 | ||||
-rw-r--r-- | cmdedit.c | 15 | ||||
-rw-r--r-- | shell/cmdedit.c | 15 |
4 files changed, 32 insertions, 4 deletions
@@ -27,9 +27,7 @@ BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z") | |||
27 | # eg: `make DODEBUG=true tests' | 27 | # eg: `make DODEBUG=true tests' |
28 | DODEBUG = false | 28 | DODEBUG = false |
29 | 29 | ||
30 | # If you want a static binary, turn this on. I can't think | 30 | # If you want a static binary, turn this on. |
31 | # of many situations where anybody would ever want it static, | ||
32 | # but... | ||
33 | DOSTATIC = false | 31 | DOSTATIC = false |
34 | 32 | ||
35 | # This will choke on a non-debian system | 33 | # This will choke on a non-debian system |
diff --git a/busybox.def.h b/busybox.def.h index b05f17a68..cb864120b 100644 --- a/busybox.def.h +++ b/busybox.def.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #define BB_FREE | 29 | #define BB_FREE |
30 | //#define BB_FREERAMDISK | 30 | //#define BB_FREERAMDISK |
31 | //#define BB_FSCK_MINIX | 31 | //#define BB_FSCK_MINIX |
32 | //#define BB_GREP | 32 | #define BB_GREP |
33 | #define BB_GUNZIP | 33 | #define BB_GUNZIP |
34 | #define BB_GZIP | 34 | #define BB_GZIP |
35 | //#define BB_HALT | 35 | //#define BB_HALT |
@@ -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); |
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); |