More minor patches

-Erik
This commit is contained in:
Erik Andersen 2000-04-09 18:24:05 +00:00
parent 0817d1372c
commit f3b3d17060
4 changed files with 32 additions and 4 deletions

View File

@ -27,9 +27,7 @@ BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z")
# eg: `make DODEBUG=true tests' # eg: `make DODEBUG=true tests'
DODEBUG = false DODEBUG = false
# If you want a static binary, turn this on. I can't think # If you want a static binary, turn this on.
# of many situations where anybody would ever want it static,
# but...
DOSTATIC = false DOSTATIC = false
# This will choke on a non-debian system # This will choke on a non-debian system

View File

@ -29,7 +29,7 @@
#define BB_FREE #define BB_FREE
//#define BB_FREERAMDISK //#define BB_FREERAMDISK
//#define BB_FSCK_MINIX //#define BB_FSCK_MINIX
//#define BB_GREP #define BB_GREP
#define BB_GUNZIP #define BB_GUNZIP
#define BB_GZIP #define BB_GZIP
//#define BB_HALT //#define BB_HALT

View File

@ -281,6 +281,14 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
if ((ret = read(inputFd, &c, 1)) < 1) if ((ret = read(inputFd, &c, 1)) < 1)
return ret; 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) { switch (c) {
case 1: case 1:
/* Control-a -- Beginning of line */ /* Control-a -- Beginning of line */
@ -514,10 +522,17 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
len--; len--;
} }
break; break;
//case '5': case '6': /* pgup/pgdown */
case '7':
/* rxvt home */
case '1': case '1':
/* Home (Ctrl-A) */ /* Home (Ctrl-A) */
input_home(outputFd, &cursor); input_home(outputFd, &cursor);
break; break;
case '8':
/* rxvt END */
case '4': case '4':
/* End (Ctrl-E) */ /* End (Ctrl-E) */
input_end(outputFd, &cursor, len); input_end(outputFd, &cursor, len);

View File

@ -281,6 +281,14 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
if ((ret = read(inputFd, &c, 1)) < 1) if ((ret = read(inputFd, &c, 1)) < 1)
return ret; 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) { switch (c) {
case 1: case 1:
/* Control-a -- Beginning of line */ /* Control-a -- Beginning of line */
@ -514,10 +522,17 @@ extern int cmdedit_read_input(char* prompt, int inputFd, int outputFd,
len--; len--;
} }
break; break;
//case '5': case '6': /* pgup/pgdown */
case '7':
/* rxvt home */
case '1': case '1':
/* Home (Ctrl-A) */ /* Home (Ctrl-A) */
input_home(outputFd, &cursor); input_home(outputFd, &cursor);
break; break;
case '8':
/* rxvt END */
case '4': case '4':
/* End (Ctrl-E) */ /* End (Ctrl-E) */
input_end(outputFd, &cursor, len); input_end(outputFd, &cursor, len);