Re: psql overwrites command line

From: Michael Wood <esiotrot(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL List - Novice <pgsql-novice(at)postgresql(dot)org>, Malik Rumi <malik(dot)a(dot)rumi(at)gmail(dot)com>
Subject: Re: psql overwrites command line
Date: 2015-04-11 21:23:16
Message-ID: CAP6d-HVtYPUB4z7f4no0L+gUtEGDN2_FVs2pP-eVcK4wRpQLig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 11 Apr 2015 10:52 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Malik Rumi <malik(dot)a(dot)rumi(at)gmail(dot)com> writes:
> > [ assorted misbehavior ]
> > Can someone tell me a) what is going on here and b) how to fix it?
Thanks.
>
> What it looks like is that psql has the wrong idea about what sort of
> terminal you're using (ie, which command language your terminal
> window understands). With no more info than that you're on Ubuntu,
> it's hard to be more specific than that. But try "echo $TERM" at the
> shell command line to see what psql is being told about this, and then
> see if that squares with the documentation about your terminal program.

Also if you have binary data that is output to the terminal as a result of
one of your queries it might have messed up your terminal in which case you
could choose one of the reset options from the menu to see if it helps.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Pascal Cloup 2015-04-17 18:48:59 listen/notify using C# and Npgsql
Previous Message Tom Lane 2015-04-11 20:51:20 Re: psql overwrites command line