how to clear psql shell in windows 10 code example
Example 1: clear screen command in psql
//for linux
\! clear
// for window
\! cls
Example 2: clear postgres terminal
If you are using Linux, type-in the following to clear the screen
<dbname>=# \! clear