psql in bash - how to clear screen?

Поиск
Список
Период
Сортировка
Искать

psql in bash - how to clear screen?

От:
Tom Holderness <tom.holderness@newcastle.ac.uk>
Дата:
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?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Tom Holderness  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?

От:
Luiz Eduardo Cantanhede Neri <lecneri@gmail.com>
Дата:
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


FAQ