Add a pager_min_lines setting to psql

Andrew Dunstan <andrew@dunslane.net>

Commit: 7655f4ccea570d57c4d473cd66b755c03c904942
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2015-03-28T15:07:41Z
Releases: 9.5.0
Add a pager_min_lines setting to psql

If set, the pager will not be used unless this many lines are to be
displayed, even if that is more than the screen depth. Default is zero,
meaning it's disabled.

There is probably more work to be done in giving the user control over
when the pager is used, particularly when wide output forces use of the
pager regardless of how many lines there are, but this is a start.

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +12 −0
src/bin/psql/command.c modified +19 −2
src/bin/psql/common.c modified +1 −1
src/bin/psql/help.c modified +6 −6
src/bin/psql/input.c modified +1 −1
src/bin/psql/print.c modified +11 −5
src/bin/psql/print.h modified +3 −1
src/bin/psql/startup.c modified +1 −0
src/test/regress/expected/psql.out modified +1 −0