Thread: psql in bash - how to clear screen?

psql in bash - how to clear screen?

From
Tom Holderness
Date:
Hi,
when I use psql in a bash terminal is there way to clear the psql screen?
Standard bash clear commands (e.g. Ctrl+l) clear screen and log me out of psql.

Apologies for the newbie question.
Many thanks.
T

Re: psql in bash - how to clear screen?

From
Tom Lane
Date:
Tom Holderness <tom.holderness@newcastle.ac.uk> writes:
> when I use psql in a bash terminal is there way to clear the psql screen?
> Standard bash clear commands (e.g. Ctrl+l) clear screen and log me out of psql.

FWIW, control-L works fine for me.  Maybe you have a broken version of
libreadline?

            regards, tom lane

Re: psql in bash - how to clear screen?

From
Luiz Eduardo Cantanhede Neri
Date:
If you are on linux try \! clear if you are using windows try \! cls


On Tue, Oct 6, 2009 at 12:25 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Tom Holderness <tom.holderness@newcastle.ac.uk> writes:
> when I use psql in a bash terminal is there way to clear the psql screen?
> Standard bash clear commands (e.g. Ctrl+l) clear screen and log me out of psql.

FWIW, control-L works fine for me.  Maybe you have a broken version of
libreadline?

                       regards, tom lane

--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice