summaryrefslogtreecommitdiff
path: root/usr.bin/top/screen.c
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>1997-09-16 19:25:01 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>1997-09-16 19:25:01 +0000
commit200160321f144628ca932af06e346a62bc906a80 (patch)
treea4d3a0ef0944a06f42974544c2330ad76afed900 /usr.bin/top/screen.c
parenta1e107f59cc92649dcf8ef0fdc6c9884ccee11ca (diff)
small terminals are dumb
Diffstat (limited to 'usr.bin/top/screen.c')
-rw-r--r--usr.bin/top/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/screen.c b/usr.bin/top/screen.c
index d8322fe9011..d72dad1c4f0 100644
--- a/usr.bin/top/screen.c
+++ b/usr.bin/top/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.3 1997/08/24 18:37:47 millert Exp $ */
+/* $OpenBSD: screen.c,v 1.4 1997/09/16 19:25:00 weingart Exp $ */
/*
* Top users/processes display for Unix
@@ -121,7 +121,7 @@ int interactive;
}
/* set up common terminal capabilities */
- if ((screen_length = tgetnum("li")) <= 0)
+ if ((screen_length = tgetnum("li")) <= Header_lines)
{
screen_length = smart_terminal = 0;
return;