aboutsummaryrefslogtreecommitdiff
path: root/cmdedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmdedit.c')
-rw-r--r--cmdedit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmdedit.c b/cmdedit.c
index 1434c36f6..ebc6b9696 100644
--- a/cmdedit.c
+++ b/cmdedit.c
@@ -83,6 +83,7 @@ cmdedit_setwidth(int w)
83void cmdedit_reset_term(void) 83void 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