From owner-freebsd-doc Mon May 29 6: 7:33 2000 Delivered-To: freebsd-doc@freebsd.org Received: from blizzard.sabbo.net (blizzard.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id 3815837B63E; Mon, 29 May 2000 06:07:19 -0700 (PDT) (envelope-from sobomax@freebsd.org) Received: from vic.sabbo.net (vic.sabbo.net [193.193.218.106]) by blizzard.sabbo.net (8.9.1/8.9.3) with ESMTP id QAA07567; Mon, 29 May 2000 16:06:16 +0300 (EEST) Received: from freebsd.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.9.3/8.9.3) with ESMTP id QAA25234; Mon, 29 May 2000 16:07:19 +0300 (EEST) (envelope-from sobomax@freebsd.org) Message-ID: <39326B84.6EBE481D@freebsd.org> Date: Mon, 29 May 2000 16:07:16 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.73 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Alexey Zelkin Cc: questions@freebsd.org, doc@freebsd.org, ru@freebsd.org Subject: Re: How to change man{1} output width References: <39325DF3.93F59C76@freebsd.org> <20000529155004.A77084@ark.cris.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alexey Zelkin wrote: > hi, > > On Mon, May 29, 2000 at 03:09:23PM +0300, Maxim Sobolev wrote: > > > I'm using non - standard FreeBSD console geometry (100x37) and just wonder how > > I can adjust groff configuration to format man pages for 100 columns instead of > > default 80. I've tried to add .ll macro to the end of the > > /usr/share/tmac/man.local but it seems doesn't have any visible effect :-(. > > Does anybody with more deep knowledge of groff could advice me on this issue? > > > > In general it would be nice if someone would teach man(1) to respect COLUMNS > > environmental variable - all xterm users would definitely benefit from that. > > I have made patches to change default width to 40 chars per Ruslan Ermilov's > request. Since I removed these patches few months ago try to ask him > (ru@FreeBSD.org) and just customize them with changing default values. > > PS: You need not to change anything in man(1). All issues are directly related > to groff(1). It seems that I have figured how to do it. The only problem is that there is two types of manpages - one native FreeBSD and one for contributed software (e.g. tcsh, gcc etc.). For some unknown for me reasons (I'm not a very big groff expert) the latter actually make use of /usr/share/tmac/man.local, while the former requires adjustments to the mdoc/doc-nroff. It would be nice if you add ".mso man.local" somewhere in FreeBSD specific configuration, so it would be possible to amend configuration in just one place and avoid editing mdoc configuration. The best solution, however, would be appropriate modifications for man(1) to respect COLUMNS and LINES environment variables. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message