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.
Showing
- doc/src/sgml/ref/psql-ref.sgml 12 additions, 0 deletionsdoc/src/sgml/ref/psql-ref.sgml
- src/bin/psql/command.c 19 additions, 2 deletionssrc/bin/psql/command.c
- src/bin/psql/common.c 1 addition, 1 deletionsrc/bin/psql/common.c
- src/bin/psql/help.c 6 additions, 6 deletionssrc/bin/psql/help.c
- src/bin/psql/input.c 1 addition, 1 deletionsrc/bin/psql/input.c
- src/bin/psql/print.c 11 additions, 5 deletionssrc/bin/psql/print.c
- src/bin/psql/print.h 3 additions, 1 deletionsrc/bin/psql/print.h
- src/bin/psql/startup.c 1 addition, 0 deletionssrc/bin/psql/startup.c
- src/test/regress/expected/psql.out 1 addition, 0 deletionssrc/test/regress/expected/psql.out
Loading
Please register or sign in to comment