From: | "Merlin Moncure" <mmoncure(at)gmail(dot)com> |
---|---|
To: | "Reece Hart" <reece(at)harts(dot)net> |
Cc: | PgSQL-General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: psql/readline clears screen |
Date: | 2006-08-09 17:31:35 |
Message-ID: | b42b73150608091031m63531255se33e7dc6b30ce3a7@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 8/9/06, Reece Hart <reece(at)harts(dot)net> wrote:
> On Wed, 2006-08-09 at 09:02 -0400, Merlin Moncure wrote:
>
> is there a way to configure psql/readline so that it doesn't clear the
> screen after browsing a query with 'q'?
> I assume you're using the less text pager on a Unix box. I think what you're seeing is less clearing the screen after displaying a query (i.e., it's not psql or readline).
>
> I like the following invocation: less -iMSx4 -FX (see less manpage for explanation). This is particularly useful with ' \pset pager always' (in .psqlrc). The upshot is that less will decide whether the contents fit on one screen both horizontally and vertically; if so it'll display and quit without any interaction, and if not it will permit scrolling in one or both directions.
actually, i do my editing about 60% windows, 40% linux until i finish
migrating my development platform to os x. on windows, i tried out
your less options using the cygwin compiled psql and like them very
much.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Ron St-Pierre | 2006-08-09 17:33:02 | PL/pgSQL Problem |
Previous Message | DEV | 2006-08-09 16:59:15 | WIN32 Build? |