diff options
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. */ |