Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Use __restartwin() in reset_prog_mode() and __...
details: https://anonhg.NetBSD.org/src/rev/1661c1912a85
branches: trunk
changeset: 486429:1661c1912a85
user: jdc <jdc%NetBSD.org@localhost>
date: Mon May 22 05:54:37 2000 +0000
description:
Use __restartwin() in reset_prog_mode() and __stopwin() in
reset_shell_mode().
diffstat:
lib/libcurses/tstp.c | 20 ++++++++++++++++----
lib/libcurses/tty.c | 17 ++---------------
2 files changed, 18 insertions(+), 19 deletions(-)
diffs (77 lines):
diff -r fd81681f3135 -r 1661c1912a85 lib/libcurses/tstp.c
--- a/lib/libcurses/tstp.c Mon May 22 05:06:20 2000 +0000
+++ b/lib/libcurses/tstp.c Mon May 22 05:54:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tstp.c,v 1.19 2000/05/17 16:23:49 jdc Exp $ */
+/* $NetBSD: tstp.c,v 1.20 2000/05/22 05:54:37 jdc Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tstp.c 8.3 (Berkeley) 5/4/94";
#else
-__RCSID("$NetBSD: tstp.c,v 1.19 2000/05/17 16:23:49 jdc Exp $");
+__RCSID("$NetBSD: tstp.c,v 1.20 2000/05/22 05:54:37 jdc Exp $");
#endif
#endif /* not lint */
@@ -184,6 +184,18 @@
int
reset_prog_mode(void)
{
- return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, &save_termios) ? ERR : OK);
+ __restartwin();
+ return(OK);
}
+
+int
+def_shell_mode(void)
+{
+ return (tcgetattr(STDIN_FILENO, &__orig_termios) ? ERR : OK);
+}
+
+int
+reset_shell_mode(void)
+{
+ return (__stopwin());
+}
diff -r fd81681f3135 -r 1661c1912a85 lib/libcurses/tty.c
--- a/lib/libcurses/tty.c Mon May 22 05:06:20 2000 +0000
+++ b/lib/libcurses/tty.c Mon May 22 05:54:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.20 2000/05/17 16:23:49 jdc Exp $ */
+/* $NetBSD: tty.c,v 1.21 2000/05/22 05:54:37 jdc 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.20 2000/05/17 16:23:49 jdc Exp $");
+__RCSID("$NetBSD: tty.c,v 1.21 2000/05/22 05:54:37 jdc Exp $");
#endif
#endif /* not lint */
@@ -449,19 +449,6 @@
return (OK);
}
-int
-def_shell_mode(void)
-{
- return (tcgetattr(STDIN_FILENO, &__orig_termios) ? ERR : OK);
-}
-
-int
-reset_shell_mode(void)
-{
- return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, &__orig_termios) ? ERR : OK);
-}
-
/*
* The following routines, savetty and resetty are completely useless and
* are left in only as stubs. If people actually use them they will almost
Home |
Main Index |
Thread Index |
Old Index