finished implimentation of more's -d switch

This commit is contained in:
mrg 1996-01-22 05:38:24 +00:00
parent 0048551bc4
commit 9b6032417d
1 changed files with 22 additions and 7 deletions

View File

@ -69,6 +69,9 @@ extern char *editor;
extern char *editproto;
#endif
extern int screen_trashed; /* The screen has been overwritten */
extern int be_helpful;
public int helpprompt;
static char ungot[100];
static char *ungotp = NULL;
@ -453,14 +456,23 @@ prompt()
* Select the proper prompt and display it.
*/
clear_bot();
p = pr_string();
if (p == NULL)
putchr(':');
else
{
if (helpprompt) {
so_enter();
putstr(p);
putstr("[Press 'h' for instructions.]");
so_exit();
helpprompt = 0;
} else {
p = pr_string();
if (p == NULL)
putchr(':');
else
{
so_enter();
putstr(p);
if (be_helpful)
putstr(" [Press space to continue, 'q' to quit.]");
so_exit();
}
}
}
@ -1246,7 +1258,10 @@ commands()
break;
default:
bell();
if (be_helpful)
helpprompt = 1;
else
bell();
break;
}
}