diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-22 11:30:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-22 11:30:23 +0000 |
commit | 8653551cb202b50a668483cb155c4c8272808ae8 (patch) | |
tree | 68b96cfc6b1fe47c01660e8da7930c6cb832b808 /manconf.h | |
parent | 059327df544eda5a4e78c14f33c6e503ff784296 (diff) | |
download | mandoc-8653551cb202b50a668483cb155c4c8272808ae8.tar.gz mandoc-8653551cb202b50a668483cb155c4c8272808ae8.tar.zst mandoc-8653551cb202b50a668483cb155c4c8272808ae8.zip |
In -T locale (the default), -T ascii, and -T utf8 mode, provide a new
output option -O tag[=term] to move right to the definition of "term" when
opening the manual page in a pager, effectively porting the -T html
fragment name feature - https://man.openbsd.org/ksh#ulimit - to the
terminal. Try:
$ man -O tag uvm_sysctl
$ man -O tag=ulimit ksh
$ man -O tag 3 compress
Feature development triggered by a question from kn@. Klemens also
tested, provided feedback that resulted in improvements, and provided
an OK.
Diffstat (limited to 'manconf.h')
-rw-r--r-- | manconf.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,6 @@ -/* $Id: manconf.h,v 1.6 2018/10/02 14:56:47 schwarze Exp $ */ +/* $Id: manconf.h,v 1.7 2018/11/22 11:30:23 schwarze Exp $ */ /* - * Copyright (c) 2011, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2011, 2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * * Permission to use, copy, modify, and distribute this software for any @@ -30,6 +30,7 @@ struct manoutput { char *man; char *paper; char *style; + char *tag; size_t indent; size_t width; int fragment; |