From: | Alban Hertroys <haramrae(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
Cc: | Condor <condor(at)stz-bg(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to prevent clear screen when query finish ? |
Date: | 2013-08-08 07:44:38 |
Message-ID: | CAF-3MvMTG=Cq7GSh9RWCJUtzzg0+TVmJO-YR9LFHAKmLnVbZcw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 7 August 2013 18:01, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> wrote:
> On 08/07/2013 08:53 AM, Condor wrote:
> http://www.postgresql.org/docs/9.2/interactive/app-psql.html
>
> pager
> Controls use of a pager program for query and psql help output. If the
> environment variable PAGER is set, the output is piped to the specified
> program. Otherwise a platform-dependent default (such as more) is used.--
>
If you use less for pager and want this behaviour system-wide, you'll want
to set another env variable: setenv LESS -X (I use tcsh) or export LESS=-X
if you use bash.
That makes less behave properly (not clearing the screen) after closing
man-pages and such.
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.
From | Date | Subject | |
---|---|---|---|
Next Message | hubert depesz lubaczewski | 2013-08-08 08:55:18 | Re: Performance of ORDER BY RANDOM to select random rows? |
Previous Message | Chris Travers | 2013-08-08 07:30:45 | Re: How to prevent clear screen when query finish ? |