diff options
author | Tim Vanderhoek <hoek@FreeBSD.org> | 1998-07-26 16:15:26 +0000 |
---|---|---|
committer | Tim Vanderhoek <hoek@FreeBSD.org> | 1998-07-26 16:15:26 +0000 |
commit | a65adfc05cfb0811b668e65b758b9c214386ef5b (patch) | |
tree | c0f7ea21eb776153d9816e17786abd112e91d23f /usr.bin/more | |
parent | e05ce16e87448c07a76617a9823fe579a723820e (diff) | |
download | src-test2-a65adfc05cfb0811b668e65b758b9c214386ef5b.tar.gz src-test2-a65adfc05cfb0811b668e65b758b9c214386ef5b.zip |
Notes
Diffstat (limited to 'usr.bin/more')
-rw-r--r-- | usr.bin/more/screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/more/screen.c b/usr.bin/more/screen.c index 83352cfed02c..1d0f41ea8c79 100644 --- a/usr.bin/more/screen.c +++ b/usr.bin/more/screen.c @@ -266,13 +266,14 @@ get_term() #ifdef TIOCGWINSZ if (ioctl(2, TIOCGWINSZ, &w) == 0 && w.ws_row > 0) sc_height = w.ws_row; + else #else #ifdef WIOCGETD if (ioctl(2, WIOCGETD, &w) == 0 && w.uw_height > 0) sc_height = w.uw_height/w.uw_vs; + else #endif #endif - else sc_height = tgetnum("li"); hard = (sc_height < 0 || tgetflag("hc")); if (hard) { |