Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Don't fiddle with the tty echo state in echo()...
details: https://anonhg.NetBSD.org/src/rev/2e6e8bbdb891
branches: trunk
changeset: 485425:2e6e8bbdb891
user: mycroft <mycroft%NetBSD.org@localhost>
date: Thu Apr 27 17:38:30 2000 +0000
description:
Don't fiddle with the tty echo state in echo() and noecho(); it should always
remain off.
diffstat:
lib/libcurses/tty.c | 18 ++++--------------
1 files changed, 4 insertions(+), 14 deletions(-)
diffs (48 lines):
diff -r 3a5b5db0fae7 -r 2e6e8bbdb891 lib/libcurses/tty.c
--- a/lib/libcurses/tty.c Thu Apr 27 16:49:07 2000 +0000
+++ b/lib/libcurses/tty.c Thu Apr 27 17:38:30 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.16 2000/04/17 12:25:46 blymn Exp $ */
+/* $NetBSD: tty.c,v 1.17 2000/04/27 17:38:30 mycroft Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tty.c 8.6 (Berkeley) 1/10/95";
#else
-__RCSID("$NetBSD: tty.c,v 1.16 2000/04/17 12:25:46 blymn Exp $");
+__RCSID("$NetBSD: tty.c,v 1.17 2000/04/27 17:38:30 mycroft Exp $");
#endif
#endif /* not lint */
@@ -317,13 +317,8 @@
__restartwin();
}
- rawt.c_lflag |= ECHO;
- cbreakt.c_lflag |= ECHO;
- __baset.c_lflag |= ECHO;
-
__echoit = 1;
- return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt) ? ERR : OK);
+ return (OK);
}
int
@@ -335,13 +330,8 @@
__restartwin();
}
- rawt.c_lflag &= ~ECHO;
- cbreakt.c_lflag &= ~ECHO;
- __baset.c_lflag &= ~ECHO;
-
__echoit = 0;
- return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt) ? ERR : OK);
+ return (OK);
}
int
Home |
Main Index |
Thread Index |
Old Index