]> granicus.if.org Git - postgresql/commit
Add a pager_min_lines setting to psql
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 28 Mar 2015 15:07:41 +0000 (11:07 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 28 Mar 2015 15:07:41 +0000 (11:07 -0400)
commit7655f4ccea570d57c4d473cd66b755c03c904942
tree66c54949a4abf3816b9826709728317889053bd5
parentcfe12763c32437bc708a64ce88a90c7544f16185
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.
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/common.c
src/bin/psql/help.c
src/bin/psql/input.c
src/bin/psql/print.c
src/bin/psql/print.h
src/bin/psql/startup.c
src/test/regress/expected/psql.out