public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* man -H should work by default on Cygwin
@ 2023-02-10 20:50 Schwarz, Konrad
  0 siblings, 0 replies; only message in thread
From: Schwarz, Konrad @ 2023-02-10 20:50 UTC (permalink / raw)
  To: cygwin

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-10 20:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-10 20:50 man -H should work by default on Cygwin Schwarz, Konrad

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).