diff options
author | Doug Rabson <dfr@FreeBSD.org> | 1995-03-28 22:20:19 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 1995-03-28 22:20:19 +0000 |
commit | db0770545f051950d521ed08c3cfbbbc5ae7b3ec (patch) | |
tree | 7c47db1a421f7dc95d1dfbddf69d8b7edc710eab | |
parent | d23c175f9d8e3b1f4aba8e5b4a750a4b011caeca (diff) |
Notes
-rw-r--r-- | lib/libcurses/setterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcurses/setterm.c b/lib/libcurses/setterm.c index ddb5871e4a806..2c2e36ef563eb 100644 --- a/lib/libcurses/setterm.c +++ b/lib/libcurses/setterm.c @@ -109,7 +109,7 @@ setterm(type) #endif /* Try TIOCGWINSZ, and, if it fails, the termcap entry. */ - if (ioctl(STDERR_FILENO, TIOCGWINSZ, &win) != -1 && + if (ioctl(__tty_fileno, TIOCGWINSZ, &win) != -1 && win.ws_row != 0 && win.ws_col != 0) { LINES = win.ws_row; COLS = win.ws_col; |