ports/misc/display/files/patch-aa
Peter Pentchev 8ef3a7361e Add back the clrtobot() call (or rather, do not remove it),
so display(1) works correctly when a command produces less output
than the previous one.

PR:		28405
Submitted by:	Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu>
2001-08-21 14:53:00 +00:00

37 lines
615 B
Text

--- display.c.orig Tue Nov 16 12:34:12 1999
+++ display.c Tue Nov 16 12:36:36 1999
@@ -8,7 +8,7 @@
#include <curses.h>
#include <signal.h>
#include <ctype.h>
-
+#include <stdio.h>
#define DEFAULT_DELAY 5
@@ -16,15 +16,13 @@
static char *Command;
static int Delay;
+static void die(), display(), parse_args(), usage();
main(argc, argv)
int argc;
char *argv[];
{
int i, c;
- extern void parse_args(),
- die(),
- display();
parse_args(argc, argv);
@@ -68,7 +66,7 @@
static void display()
{
- FILE *fp, *popen();
+ FILE *fp;
char ch;
if (!(fp = popen(Command, "r"))) {