summaryrefslogtreecommitdiffstatshomepage
path: root/term.h
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2010-05-15 16:18:23 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2010-05-15 16:18:23 +0000
commitcb574fba99de6900929ef272a818f2b4c756abbd (patch)
tree36624b5c75ad51535c0692a957c0c0eb058b142d /term.h
parent23ae8ccb1b52134baac639bb4490d75fd11c858e (diff)
downloadmandoc-cb574fba99de6900929ef272a818f2b4c756abbd.tar.gz
mandoc-cb574fba99de6900929ef272a818f2b4c756abbd.tar.zst
mandoc-cb574fba99de6900929ef272a818f2b4c756abbd.zip
Make the output width an option for ascii_alloc and use that to compute
the default margin. Hard-code 80 chars/line for now.
Diffstat (limited to 'term.h')
-rw-r--r--term.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/term.h b/term.h
index 3b9beb01..cac23d9b 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.54 2010/05/12 16:01:01 kristaps Exp $ */
+/* $Id: term.h,v 1.55 2010/05/15 16:18:23 joerg Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -32,6 +32,7 @@ enum termfont {
#define TERM_MAXMARGIN 100000 /* FIXME */
struct termp {
+ size_t defrmargin; /* Right margin of the device.. */
size_t rmargin; /* Current right margin. */
size_t maxrmargin; /* Max right margin. */
size_t maxcols; /* Max size of buf. */