diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
| commit | 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch) | |
| tree | e779b5a6edddbb949b7990751b12d6f25304ba86 /lib/libcurses/tstp.c | |
| parent | a16f65c7d117419bd266c28a1901ef129a337569 (diff) | |
Diffstat (limited to 'lib/libcurses/tstp.c')
| -rw-r--r-- | lib/libcurses/tstp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcurses/tstp.c b/lib/libcurses/tstp.c index daac9174d745..164f10bdd8b0 100644 --- a/lib/libcurses/tstp.c +++ b/lib/libcurses/tstp.c @@ -54,8 +54,8 @@ __stop_signal_handler(signo) sigset_t oset, set; /* Get the current terminal state (which the user may have changed). */ - if (tcgetattr(STDIN_FILENO, &save)) - return; + if (tcgetattr(__tty_fileno, &save)) + return; /* * Block window change and timer signals. The latter is because @@ -87,10 +87,10 @@ __stop_signal_handler(signo) __set_stophandler(); /* save the new "default" terminal state */ - (void)tcgetattr(STDIN_FILENO, &__orig_termios); + (void)tcgetattr(__tty_fileno, &__orig_termios); /* Reset the terminal state to the mode just before we stopped. */ - (void)tcsetattr(STDIN_FILENO, __tcaction ? + (void)tcsetattr(__tty_fileno, __tcaction ? TCSASOFT | TCSADRAIN : TCSADRAIN, &save); /* Restart the screen. */ |
