pspg is a pager for PostgreSQL's psql client. To use pspg, add the following line to .psqlrc: \setenv PAGER 'pspg'