diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-18 00:00:52 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-18 00:00:52 +0000 |
commit | a6c752201e9031b51a6d89349f1cec1f690f56ef (patch) | |
tree | 808a54e0dc112d8b32326ccdb411e4300dc65d76 /shell | |
parent | 91e581fa0438b39ceb0ffb4ddcb90ee4d260ae81 (diff) | |
download | busybox-w32-a6c752201e9031b51a6d89349f1cec1f690f56ef.tar.gz busybox-w32-a6c752201e9031b51a6d89349f1cec1f690f56ef.tar.bz2 busybox-w32-a6c752201e9031b51a6d89349f1cec1f690f56ef.zip |
Updates
-Erik
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cmdedit.c | 3 | ||||
-rw-r--r-- | shell/lash.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 1434c36f6..ebc6b9696 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -83,6 +83,7 @@ cmdedit_setwidth(int w) | |||
83 | void cmdedit_reset_term(void) | 83 | void cmdedit_reset_term(void) |
84 | { | 84 | { |
85 | if (reset_term) | 85 | if (reset_term) |
86 | /* sparc and other have broken termios support: use old termio handling. */ | ||
86 | ioctl(fileno(stdin), TCSETA, (void *) &old_term); | 87 | ioctl(fileno(stdin), TCSETA, (void *) &old_term); |
87 | } | 88 | } |
88 | 89 | ||
@@ -378,6 +379,7 @@ extern void cmdedit_read_input(char* prompt, char command[BUFSIZ]) | |||
378 | 379 | ||
379 | memset(command, 0, sizeof(command)); | 380 | memset(command, 0, sizeof(command)); |
380 | if (!reset_term) { | 381 | if (!reset_term) { |
382 | /* sparc and other have broken termios support: use old termio handling. */ | ||
381 | ioctl(inputFd, TCGETA, (void *) &old_term); | 383 | ioctl(inputFd, TCGETA, (void *) &old_term); |
382 | memcpy(&new_term, &old_term, sizeof(struct termio)); | 384 | memcpy(&new_term, &old_term, sizeof(struct termio)); |
383 | 385 | ||
@@ -589,6 +591,7 @@ extern void cmdedit_read_input(char* prompt, char command[BUFSIZ]) | |||
589 | } | 591 | } |
590 | 592 | ||
591 | nr = len + 1; | 593 | nr = len + 1; |
594 | /* sparc and other have broken termios support: use old termio handling. */ | ||
592 | ioctl(inputFd, TCSETA, (void *) &old_term); | 595 | ioctl(inputFd, TCSETA, (void *) &old_term); |
593 | reset_term = 0; | 596 | reset_term = 0; |
594 | 597 | ||
diff --git a/shell/lash.c b/shell/lash.c index bbf57752b..97db8afaf 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -120,7 +120,6 @@ static struct builtInCommand bltins[] = { | |||
120 | {"pwd", "Print current directory", "pwd", shell_pwd}, | 120 | {"pwd", "Print current directory", "pwd", shell_pwd}, |
121 | {"export", "Set environment variable", "export [VAR=value]", shell_export}, | 121 | {"export", "Set environment variable", "export [VAR=value]", shell_export}, |
122 | {"unset", "Unset environment variable", "unset VAR", shell_unset}, | 122 | {"unset", "Unset environment variable", "unset VAR", shell_unset}, |
123 | |||
124 | {".", "Source-in and run commands in a file", ". filename", shell_source}, | 123 | {".", "Source-in and run commands in a file", ". filename", shell_source}, |
125 | {"help", "List shell built-in commands", "help", shell_help}, | 124 | {"help", "List shell built-in commands", "help", shell_help}, |
126 | {NULL, NULL, NULL, NULL} | 125 | {NULL, NULL, NULL, NULL} |