pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Jasen Betts <jasen@xnet.co.nz>
Cc: pgsql-sql@postgresql.org
Subject: Re: possible bug in psql
Date: Wed, 30 May 2012 09:13:06 +0800
Message-ID: <4FC57422.1090308@ringerc.id.au> (raw)
In-Reply-To: <jq2d2r$t3n$1@reversiblemaps.ath.cx>
References: <1338261095.25964.YahooMailClassic@web161405.mail.bf1.yahoo.com>
	<jq2d2r$t3n$1@reversiblemaps.ath.cx>

On 05/29/2012 07:48 PM, Jasen Betts wrote:
> On 2012-05-29, chester c young<chestercyoung@yahoo.com>  wrote:
>> do not know if right mailing list
>>
>> in psql in Ubuntu, when beginning with a smaller terminal, eg, 80
>> col wide, then moving to a larger terminal, eg, 132 col wide, the
>> readline(?) editor in psql still treats like 80 cols, making it
>> impossible to edit longer text.
> As far as I know (as this is the behavior in debian stable)
> the ubuntu people use libgettext and not libreadline.
>
> You can force it to use libreadline by using LD_PRELOAD.  I reccomend
> that you do I did this by editing /usr/bin/psql which is a perl script
>
> In any case linux doesn't propogate SIG_WINCH to the other processes
> that are using the pty so even if you are using readline you have to
> force this by resizing the window again after exiting the pager, and
> then press ctrl-l to clear the screen.
It'd be nice if `less` would kill(SIGWINCH) its ppid since it is so 
often invoked as a helper. I guess they probably have good reasons not to.

--
Craig Ringer



view thread (5+ messages)  latest in thread

Message-ID: <4FC57422.1090308@ringerc.id.au>
Permalink:  ../4FC57422.1090308@ringerc.id.au/
Also on:    postgresql.org/message-id/4FC57422.1090308@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ringerc@ringerc.id.au, jasen@xnet.co.nz
  Subject: Re: possible bug in psql
  In-Reply-To: <4FC57422.1090308@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox