summaryrefslogtreecommitdiffstats
path: root/contrib/less/output.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-04 01:42:54 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-04 01:42:54 +0000
commit7672cb6e48e2ed472cbd72caaa0eb155608a644d (patch)
treeee770081db4ef1d4b6022e0608a222ea35319caa /contrib/less/output.c
parent5297f4bc59da861bbe3beb5ee12839fa05e79882 (diff)
downloadFreeBSD-src-7672cb6e48e2ed472cbd72caaa0eb155608a644d.zip
FreeBSD-src-7672cb6e48e2ed472cbd72caaa0eb155608a644d.tar.gz
/home/delphij/m
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