I'm making my first 'man' page and I'm using groff
to do it. However, when I "compile" it and view it, it only takes up a certain amount of columns in my terminal. I've tried viewing other man pages just in case and they stretch with the width of my terminal. For a visual exmaple:
---------------------------------------
| stuff(1) stuff(1) |
| |
| NAME |
| a tool to do stuff but |
| it isn't really working |
| |
| DESCRIPTION |
| yadadyadyadyadyadyadydy |
| segfwefwefwefwe |
| |
| srgswrgwrg |
---------------------------------------
... and so on, hopefully you get the idea. Most man pages take the full width.
Right now, after writing my man page in a text file (using the groff/nroff "syntax"), I make it like this:
groff -Tascii -man ./path/to/man | more
man
pages without all the pain of the old toolchain using something likeronn
. Also, I seem to recall hearing that the OpenBSD toolchain forman
pages is different (I have no real basis for comparison, though). Here'sman mdoc
– Hank Gay Aug 10 '11 at 19:27