aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tag.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-11-22 11:30:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-11-22 11:30:23 +0000
commit8653551cb202b50a668483cb155c4c8272808ae8 (patch)
tree68b96cfc6b1fe47c01660e8da7930c6cb832b808 /tag.h
parent059327df544eda5a4e78c14f33c6e503ff784296 (diff)
downloadmandoc-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 'tag.h')
-rw-r--r--tag.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag.h b/tag.h
index ab1388d7..bbd40b73 100644
--- a/tag.h
+++ b/tag.h
@@ -1,4 +1,4 @@
-/* $Id: tag.h,v 1.7 2015/11/20 21:59:54 schwarze Exp $ */
+/* $Id: tag.h,v 1.8 2018/11/22 11:30:23 schwarze Exp $ */
/*
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -18,6 +18,7 @@
struct tag_files {
char ofn[20];
char tfn[20];
+ char *tagname;
int ofd;
int tfd;
pid_t tcpgid;