From: utzoo!decvax!duke!harpo!zeppo!wheps!eagle!mhtsa!allegra!ran
Newsgroups: net.unix-wizards
Title: solution to "dired on hps"
Article-I.D.: allegra.469
Posted: Mon Sep 13 13:23:29 1982
Received: Tue Sep 14 05:26:46 1982

Thanks for all the replies. I have chosen to post Lepreau's, who
kindly donated dired in the first place:
>
>From harpo!utah-cs!lepreau Sun Sep 12 19:40:28 1982
To: harpo!allegra!ran
Subject: dired for hps

This problem came up immediately dired was posted.  The fix is trivial.

Replace home() with this:  (++ == added, ~~ == changed)

home ()
{
    if (HO == 0)		++
	curxy(0, 0);		++
    else			++
	putpad (HO);
}

And replace the conditional in getcap() with this:

    if ((CM == 0) || (CL == 0) || (UP == 0))		~~
    {
	fprintf (stderr, "Tty must have cursor addr, clear, and 4 cursor motions.\n");
	exit (1);
    }

Other unrelated but impt thing you should do is take out the
signal(SIGHUP, SIG_IGN) at the beginning of dired.