Re: psql/readline clears screen - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: psql/readline clears screen
Date
Msg-id 20060809131255.GK22329@svana.org
Whole thread Raw
In response to psql/readline clears screen  ("Merlin Moncure" <mmoncure@gmail.com>)
List pgsql-general
On Wed, Aug 09, 2006 at 09:02:55AM -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'?

You don't say the OS, but you may be seeing the effects of less working
on a terminal with a seperate interactive screen (for example xterm).
What's happening is that when less exits, it switches back to the main
screen, thus hiding what you were just looking at.

From reading the manpage, setting the pager to "less -X" should solve
this problem.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: psql/readline clears screen
Next
From: AgentM
Date:
Subject: Re: psql/readline clears screen