public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Schwarz, Konrad" <konrad.schwarz@siemens.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: man -H should work by default on Cygwin
Date: Fri, 10 Feb 2023 20:50:19 +0000	[thread overview]
Message-ID: <GV2PR10MB620990D97CDAC28F312B91228ADE9@GV2PR10MB6209.EURPRD10.PROD.OUTLOOK.COM> (raw)

Hello,

the man(1) program (together with groff) can generate HTML
via the -H switch, e.g., man -H ls.

The environment variable BROWSER names the default HTML
browser man will use to display this page, lynx(1) if unset.
Recent versions of man(1) now wait longer before deleting
the rendered HTML file, allowing slower browsers to work
as well. 

As of CYGWIN_NT-10.0-1942, setting BROWSER to cygstart
works for me: my default browser, Chrome, creates
a new tab page with the man page.

I think this would be a worthwhile addition to
/etc/skel/.bashrc (and so on), for example:

case $(uname) in
(CYGWIN_NT-*) export BROWSER=cygstart
esac

-- 
Konrad


                 reply	other threads:[~2023-02-10 20:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=GV2PR10MB620990D97CDAC28F312B91228ADE9@GV2PR10MB6209.EURPRD10.PROD.OUTLOOK.COM \
    --to=konrad.schwarz@siemens.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).