summaryrefslogtreecommitdiff
path: root/usr.bin/more
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>1998-07-26 16:15:26 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>1998-07-26 16:15:26 +0000
commita65adfc05cfb0811b668e65b758b9c214386ef5b (patch)
treec0f7ea21eb776153d9816e17786abd112e91d23f /usr.bin/more
parente05ce16e87448c07a76617a9823fe579a723820e (diff)
downloadsrc-test2-a65adfc05cfb0811b668e65b758b9c214386ef5b.tar.gz
src-test2-a65adfc05cfb0811b668e65b758b9c214386ef5b.zip
Notes
Diffstat (limited to 'usr.bin/more')
-rw-r--r--usr.bin/more/screen.c3
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) {