Xref: utzoo biz.sco.general:341 comp.unix.xenix.sco:2869 comp.unix.sysv386:9285 comp.text:8580 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!ucsd!pacbell.com!att!att!cbnewsl!npn From: npn@cbnewsl.att.com (nils-peter.nelson) Newsgroups: biz.sco.general,comp.unix.xenix.sco,comp.unix.sysv386,comp.text Subject: Re: Nroff and SCO Unix Summary: a cheap X window man command. Message-ID: <1991Jun24.170405.20206@cbnewsl.att.com> Date: 24 Jun 91 17:04:05 GMT References: <9106192118.AA27899@robobar.Co.Uk> <2195@ecicrl.ocunix.on.ca> <9106211556.AA12467@robobar.Co.Uk> Followup-To: comp.text Organization: AT&T Bell Laboratories Lines: 25 Somewhere in the middle of this article the subject of man under X came up. I've seen several (to me) over- engineered versions that take thousands of lines of code to turn nroff output back into variable width, including handling overstrikes, underlines, etc. Herewith my own 3 line version of man for X windows; it relies on the fact that DWB 3.2 -man macros offer compatibility with all known implementations (actually, all the ones we bothered to find), and on xtv, which is a working version of xditview. The first line pumps the point size up, 'cause I'm finally at the age where I have trouble reading 10 point type. === echo '.nr )S 12 .po +2' | \ troff -man - `whence $1 | sed "s:[^/]*/$1:man/man1/$1.1:"` | xtv & === Also, an editorial comment to: Between James Clark and Chris Lewis, I think troff's life has been extended beyond expectation. === To wit: (pout, pout) At least Brian Kernighan should be mentioned.