xo / usql

Universal command-line interface for SQL databases
MIT License
8.89k stars 349 forks source link

\watch should not use PAGER #313

Closed noborus closed 2 years ago

noborus commented 2 years ago

Whenever a pager is used in \watch, the PAGER needs to be terminated manually.

If \watch wants to use the PAGER, usql will have to output to the pager (without exiting). See PSQL_WATCH_PAGER in PostgreSQL15.

nineinchnick commented 2 years ago

Fixed in https://github.com/xo/usql/commit/f23d610fb57c040899b059d69ce94c1d15194e49