Check out example codes for "clear postgres terminal". It will help you in understanding the concepts better.

Code Example 1

If you are using Linux, type-in the following to clear the screen
<dbname>=# \! clear

Learn ReactJs, React Native from akashmittal.com