Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Really fix the __endwin/stop handler problem.



details:   https://anonhg.NetBSD.org/src/rev/6227c8e44603
branches:  trunk
changeset: 487985:6227c8e44603
user:      jdc <jdc%NetBSD.org@localhost>
date:      Fri Jun 16 06:32:19 2000 +0000

description:
Really fix the __endwin/stop handler problem.

diffstat:

 lib/libcurses/tty.c |  34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diffs (153 lines):

diff -r 3ce89daed901 -r 6227c8e44603 lib/libcurses/tty.c
--- a/lib/libcurses/tty.c       Fri Jun 16 06:29:40 2000 +0000
+++ b/lib/libcurses/tty.c       Fri Jun 16 06:32:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.22 2000/06/15 21:20:16 jdc Exp $     */
+/*     $NetBSD: tty.c,v 1.23 2000/06/16 06:32:19 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.22 2000/06/15 21:20:16 jdc Exp $");
+__RCSID("$NetBSD: tty.c,v 1.23 2000/06/16 06:32:19 jdc Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -141,7 +141,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        useraw = __pfast = __rawmode = 1;
        curt = &rawt;
@@ -154,7 +154,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        useraw = __pfast = __rawmode = 0;
        curt = &__baset;
@@ -167,7 +167,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        __rawmode = 1;
        curt = useraw ? &rawt : &cbreakt;
@@ -180,7 +180,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        __rawmode = 0;
        curt = useraw ? &rawt : &__baset;
@@ -193,7 +193,7 @@
  {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        rawt.c_cc[VMIN] = 1;
        rawt.c_cc[VTIME] = 0;
@@ -211,7 +211,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        rawt.c_cc[VMIN] = 0;
        rawt.c_cc[VTIME] = 0;
@@ -229,7 +229,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        ovmin = cbreakt.c_cc[VMIN];
        ovtime = cbreakt.c_cc[VTIME];
@@ -240,7 +240,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        rawt.c_cc[VMIN] = ovmin;
        rawt.c_cc[VTIME] = ovtime;
@@ -255,7 +255,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        ovmin = cbreakt.c_cc[VMIN];
        ovtime = cbreakt.c_cc[VTIME];
@@ -275,7 +275,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        rawt.c_cc[VMIN] = 1;
        rawt.c_cc[VTIME] = 0;
@@ -293,7 +293,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        __echoit = 1;
        return (OK);
@@ -304,7 +304,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        __echoit = 0;
        return (OK);
@@ -315,7 +315,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        rawt.c_iflag |= ICRNL;
        rawt.c_oflag |= ONLCR;
@@ -334,7 +334,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        rawt.c_iflag &= ~ICRNL;
        rawt.c_oflag &= ~ONLCR;
@@ -353,7 +353,7 @@
 {
        /* Check if we need to restart ... */
        if (__endwin)
-               __endwin = 0;
+               __restartwin();
 
        if (bf) {
                rawt.c_lflag &= ~NOFLSH;



Home | Main Index | Thread Index | Old Index