summaryrefslogtreecommitdiffstats
path: root/term_ascii.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-31 16:52:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-31 16:52:39 +0000
commit1977034f28d32faa3922d64ddb114452ff49dbc2 (patch)
tree737a5c2784e60ef61cc47c4eb1e183d3f5722c04 /term_ascii.c
parenta496c49929452bb18c638b61351373fd96a2515b (diff)
downloadmandoc-1977034f28d32faa3922d64ddb114452ff49dbc2.tar.gz
When showing more than one formatted manual page, insert horizontal lines
between pages. Suggested by Theo Buehler <theo at math dot ethz dot ch>. Even in UTF-8 output mode, do not use fancy line drawing characters such that you can easily use /^--- to skip to the next manual in your pager.
Diffstat (limited to 'term_ascii.c')
-rw-r--r--term_ascii.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/term_ascii.c b/term_ascii.c
index 1231fd87..ee630493 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -174,6 +174,20 @@ ascii_setwidth(struct termp *p, int iop, size_t width)
p->rmargin = p->maxrmargin = p->defrmargin;
}
+void
+ascii_sepline(void *arg)
+{
+ struct termp *p;
+ size_t i;
+
+ p = (struct termp *)arg;
+ putchar('\n');
+ for (i = 0; i < p->defrmargin; i++)
+ putchar('-');
+ putchar('\n');
+ putchar('\n');
+}
+
static size_t
ascii_width(const struct termp *p, int c)
{