Re: psql screen size

From: wstrzalka <wstrzalka(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: psql screen size
Date: 2008-10-28 18:48:38
Message-ID: 04e61777-6541-4603-be43-429c3e515750@f40g2000pri.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 27 Paź, 13:16, s(dot)(dot)(dot)(at)samason(dot)me(dot)uk (Sam Mason) wrote:
> On Mon, Oct 27, 2008 at 01:59:42AM -0700, wstrzalka wrote:
> > I'm using psql mainly in putty window.
>
> it's pretty much always just worked with me.  I'm using a very old
> version of putty, but it all hangs together as well as anything else
> does
>
> > When changing the window size (and those chars per row) psql output
> > becomes mess, the only rescue is to exit and run the psql again. It
> > looks like it's initializing the output params at startup and don't
> > refresh it in runtime.
>
> Resizing the window when entering SQL works OK for me, but resizing when
> inside my pager (normally the "less" utility, when you get more results
> than will fit on the screen) causes psql to be confused when I return to
> it.
>
> Exactly the same bug occurred in various shells a while ago and was
> fixed (I believe) by getting them to inquire about the screen dimensions
> far more than they strictly ought to be doing.  I'd also guess that psql
> doesn't know or care about the screen size as it's all handled by the
> "readline" library.
>
>   Sam
>
> --
> Sent via pgsql-general mailing list (pgsql-gene(dot)(dot)(dot)(at)postgresql(dot)org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general

Yes. This is exactly the case. When I browse large paged query result
and resize during that, the screen is messed up.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-10-28 18:57:36 Re: Quiet "CONTEXT"?
Previous Message Mike Toews 2008-10-28 18:19:26 Quiet "CONTEXT"?