[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Re: pagesize for terminal output
From: |
Anton Shepelev |
Subject: |
Re: [Groff] Re: pagesize for terminal output |
Date: |
Wed, 2 Mar 2011 17:32:29 +0300 |
Werner Lemberg:
> > And the rationale is exactly what you said:
> > paper sizes and screen sizes do not mix prop-
> > erly; so it may be useful to ignore a length and
> > leave the "page break" to a pager.
>
> Exactly. For man pages this is done like this by
> default.
And exactly in the same way, using an end-of-input
trap:
.de1 an-end
. nr % 1
. pl +4v
. fl
. sp 3
. an-p-footer
. pl \\n[nl]u \" <- trim page length
..
[...]
.if \n[cR] .em an-end \"<- Turn on single-page mode if cR > 0
So, this behavior can controlled via the cR number
register, and you can set number registers on com-
mand-line when invoking groff with the -r option.
Anton
- Re: [Groff] Re: pagesize for terminal output, walter harms, 2011/03/01
- Re: [Groff] Re: pagesize for terminal output, Anton Shepelev, 2011/03/01
- Re: [Groff] Re: pagesize for terminal output, Ralph Corderoy, 2011/03/01
- Re: [Groff] Re: pagesize for terminal output, walter harms, 2011/03/02
- Re: [Groff] Re: pagesize for terminal output, Werner LEMBERG, 2011/03/02
- Re: [Groff] Re: pagesize for terminal output, walter harms, 2011/03/02
- Re: [Groff] Re: pagesize for terminal output, Werner LEMBERG, 2011/03/02
- Re: [Groff] Re: pagesize for terminal output,
Anton Shepelev <=
- Re: [Groff] Re: pagesize for terminal output, walter harms, 2011/03/02
- Re: [Groff] Re: pagesize for terminal output, Anton Shepelev, 2011/03/02
- Re: [Groff] Re: pagesize for terminal output, walter harms, 2011/03/02
- Re: [Groff] Re: pagesize for terminal output, Anton Shepelev, 2011/03/02