From 8653551cb202b50a668483cb155c4c8272808ae8 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 22 Nov 2018 11:30:23 +0000 Subject: 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. --- manconf.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manconf.h') diff --git a/manconf.h b/manconf.h index babd463b..bb376199 100644 --- a/manconf.h +++ b/manconf.h @@ -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 + * Copyright (c) 2011, 2015, 2017, 2018 Ingo Schwarze * Copyright (c) 2011 Kristaps Dzonsons * * 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; -- cgit v1.2.3-56-ge451