summaryrefslogtreecommitdiffstats
path: root/contrib/less/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/output.c')
-rw-r--r--contrib/less/output.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/less/output.c b/contrib/less/output.c
index b434bc9..9c9d4ac 100644
--- a/contrib/less/output.c
+++ b/contrib/less/output.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2005 Mark Nudelman
+ * Copyright (C) 1984-2007 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -21,6 +21,7 @@
public int errmsgs; /* Count of messages displayed by error() */
public int need_clr;
public int final_attr;
+public int at_prompt;
extern int sigs;
extern int sc_width;
@@ -28,6 +29,7 @@ extern int so_s_width, so_e_width;
extern int screen_trashed;
extern int any_display;
extern int is_tty;
+extern int oldbot;
#if MSDOS_COMPILER==BORLANDC || MSDOS_COMPILER==DJGPPC
extern int ctldisp;
@@ -372,6 +374,7 @@ putchr(c)
if (ob >= &obuf[sizeof(obuf)-1])
flush();
*ob++ = c;
+ at_prompt = 0;
return (c);
}
@@ -522,6 +525,8 @@ error(fmt, parg)
if (any_display && is_tty)
{
+ if (!oldbot)
+ squish_check();
at_exit();
clear_bot();
at_enter(AT_STANDOUT);
OpenPOWER on IntegriCloud