pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nico <nicod@tiscalinet.it>
To: pgsql-interfaces@postgresql.org, Alessio Bragadini <alessio@albourne.com>
Cc: pgsql-general@postgresql.org
Subject: Re: terminal psql: wrong console keystrokes
Date: Tue, 20 Feb 2001 15:03:23 +0100
Message-ID: <01022014363900.01536@localhost.localdomain> (raw)
In-Reply-To: <3A926F0E.399A2B9A@albourne.com>
References: <01021715250900.02205@localhost.localdomain>
	<3A926F0E.399A2B9A@albourne.com>

Nope. :(
I'm using Xfree 4.0.1, and I tried to change it into Xfree 3.3.6. 
Under both servers I'm having troubles with keystrokes.
Please note that with the konsole the keys are correctly interpreted, 
e.g. if I push Up, konsole bash recalls previous commands. 
Moreover, the interactive terminal VIM interpretes correctly the keystrokes.

Under psql things are so strange. 
I don't understand if it's psql that its misinterpreting keystrokes (a wrong 
internal setting, which?), or it's something else? 

instead of Up (for scrolling in the internel buffer) it appears  ^[[A   
Down  ^[[B
Right ^[[C
Left  ^[[D
Back_del  (ok)
Forward_del ^[[3~
Tab  (moves the cursor but does not complete the sql command)
Esc ^[

What internal settings make the psql interpete the keystrokes, and how to 
toggle them?

(Mandrake 7.2, AMD Athlon, postgres ver.7.0.2)



On 20 febbraio 2001, Alessio Bragadini wrote: 
> Nico wrote:
> > Through Konsole, the Up, Down, Left, Right keys work properly, but
> > through psql the keystrokes seem to be wrong:
> > Linux console, xterm, vt100, vt420pc
>
> I've noticed differences between
> Setting->Keyboard->xterm (XFree 3) and
> Setting->Keyboard->xterm (XFree 4)
>
> Does it work?



view thread (5+ messages)  latest in thread

Message-ID: <01022014363900.01536@localhost.localdomain>
Permalink:  ../01022014363900.01536@localhost.localdomain/
Also on:    postgresql.org/message-id/01022014363900.01536@localhost.localdomain

 · 

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-interfaces@postgresql.org
  Cc: nicod@tiscalinet.it, alessio@albourne.com, pgsql-general@postgresql.org
  Subject: Re: terminal psql: wrong console keystrokes
  In-Reply-To: <01022014363900.01536@localhost.localdomain>

* 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