[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem printing man pages



On Thu, Jan 30, 2003 at 09:53:24AM -0500, Wayne Topa wrote:
> Colin Watson(cjwatson@debian.org) is reported to have said:
> > .if n \{\
> > .  \" Debian: Map \(oq to ' rather than ` in nroff mode for devices other
> > .  \" than utf8.
> > .  if !'\*[.T]'utf8' \
> > .    tr \[oq]'
> > .
> > .  \" Debian: Disable the use of SGR (ANSI colour) escape sequences by
> > .  \" grotty.
> > .  if '\V[GROFF_SGR]'' \
> > .    output x X tty: sgr 0
> > .
> > .  \" Debian: Map \- to the Unicode HYPHEN-MINUS character, to make
> > .  \" searching in man pages easier.
> > .  if '\*[.T]'utf8' \
> > .    char \- \N'45'
> > .\}
> 
> Both /etc/groff/man.local & /etc/groff/mdoc.local do have the above
> macros, but that is all they have.

Indeed, that's correct.

> > There are other ways: setting GROFF_NO_SGR=1 in the environment is a
> > simple one, or causing your pager to accept ANSI SGR escapes (less will
> > do so if given the -R option, for instance). The above is probably the
> > best fix until everything that accepts groff output has been fixed,
> > though.
> 
> Thats the 'fix' I (now) remember reading.  I have added that to
> .bash_profile, sourced bash_profile, and the control chars persist
> 
> > By the way, if you're actually printing man pages to paper (I'm not sure
> > from your post if you mean printing to screen or printing to paper),
> > consider using the -t option to man to generate PostScript output.
> 
> Sorry, the pages display (to the screen) fine but I am unable to print
> (to the printer) without them looking like  ^[[1mNAME^[[0m

Neither this nor your answer above is supposed to happen. Could you tell
me exactly what you're doing so that I can try to reproduce it?

Thanks,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: