summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-09-03 05:22:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-09-03 05:22:45 +0000
commit23314f00a3de516604e28d2a34bde0428f6067fb (patch)
tree41f72d0cdd36e6f74d193974466fff1871fa7967 /term.h
parent3d35e7c87bf69138c20259187b52c26c01ab6cda (diff)
downloadmandoc-23314f00a3de516604e28d2a34bde0428f6067fb.tar.gz
Implement the traditional -h option for man(1): show the SYNOPSIS only.
As usual, we get mandoc -h and apropos -h for free. Try stuff like "apropos -h In=dirent" or "apropos -h Fa=timespec". Only useful for terminal output, so -Tps, -Tpdf, -Thtml ignore -h for now.
Diffstat (limited to 'term.h')
-rw-r--r--term.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/term.h b/term.h
index 4fe518e8..96b7e51c 100644
--- a/term.h
+++ b/term.h
@@ -54,6 +54,7 @@ struct termp_tbl {
struct termp {
enum termtype type;
struct rofftbl tbl; /* table configuration */
+ int synopsisonly; /* print the synopsis only */
int mdocstyle; /* imitate mdoc(7) output */
size_t defindent; /* Default indent for text. */
size_t defrmargin; /* Right margin of the device. */