pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedterminal psql: wrong console keystrokes
5+ messages / 4 participants
[nested] [flat]
* terminal psql: wrong console keystrokes
@ 2001-02-17 14:25 Nico <nicod@tiscalinet.it>
2001-02-20 04:25 ` Re: terminal psql: wrong console keystrokes Thomas Lockhart <lockhart@alumni.caltech.edu>
2001-02-20 13:20 ` Re: terminal psql: wrong console keystrokes Alessio Bragadini <alessio@albourne.com>
0 siblings, 2 replies; 5+ messages in thread
From: Nico @ 2001-02-17 14:25 UTC (permalink / raw)
To: pgsql-general@postgresql.org
Through Konsole, the Up, Down, Left, Right keys work properly, but through
psql the keystrokes seem to be wrong:
instead of up (for scrolling in the internel buffer) it appears ^[[A
Down ^[[B
Right ^[[C
Left ^[[D
Back_del (ok)
Forward_del ^[[3~
It happened when I upgraded Mandrake from 7.1 to 7.2 (Linux 2.2.17-21mdksmp
i686), postgresql 7.0.2 from Mandrake RPM.
Where should I look at? I tried the following keyboard settings:
Linux console, xterm, vt100, vt420pc
but no-one works properly.
thanks!
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: terminal psql: wrong console keystrokes
2001-02-17 14:25 terminal psql: wrong console keystrokes Nico <nicod@tiscalinet.it>
@ 2001-02-20 04:25 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Lockhart @ 2001-02-20 04:25 UTC (permalink / raw)
To: Nico <nicod@tiscalinet.it>; +Cc: pgsql-interfaces
> It happened when I upgraded Mandrake from 7.1 to 7.2 (Linux 2.2.17-21mdksmp
> i686), postgresql 7.0.2 from Mandrake RPM.
> Where should I look at?
Get the 7.0.2 RPMs for Mandrake from ftp.postgresql.org/pub/binaries/.
The ones shipped with Mandrake were slightly broken, in that readline
was apparently not detected and used during the build. This leads to
exactly the symptoms you describe.
The Mandrake folks have already discovered and fixed this problem in
their builds, so the next ones from their distro should be OK.
- Thomas
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: terminal psql: wrong console keystrokes
2001-02-17 14:25 terminal psql: wrong console keystrokes Nico <nicod@tiscalinet.it>
@ 2001-02-20 13:20 ` Alessio Bragadini <alessio@albourne.com>
2001-02-20 14:03 ` Re: terminal psql: wrong console keystrokes Nico <nicod@tiscalinet.it>
1 sibling, 1 reply; 5+ messages in thread
From: Alessio Bragadini @ 2001-02-20 13:20 UTC (permalink / raw)
To: Nico <nicod@tiscalinet.it>; +Cc: pgsql-general@postgresql.org
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?
--
Alessio F. Bragadini alessio@albourne.com
APL Financial Services http://village.albourne.com
Nicosia, Cyprus phone: +357-2-755750
"It is more complicated than you think"
-- The Eighth Networking Truth from RFC 1925
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: terminal psql: wrong console keystrokes
2001-02-17 14:25 terminal psql: wrong console keystrokes Nico <nicod@tiscalinet.it>
2001-02-20 13:20 ` Re: terminal psql: wrong console keystrokes Alessio Bragadini <alessio@albourne.com>
@ 2001-02-20 14:03 ` Nico <nicod@tiscalinet.it>
2001-02-20 14:21 ` Re: terminal psql: wrong console keystrokes Brett W. McCoy <bmccoy@chapelperilous.net>
0 siblings, 1 reply; 5+ messages in thread
From: Nico @ 2001-02-20 14:03 UTC (permalink / raw)
To: pgsql-interfaces@postgresql.org, Alessio Bragadini <alessio@albourne.com>; +Cc: pgsql-general@postgresql.org
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?
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: terminal psql: wrong console keystrokes
2001-02-17 14:25 terminal psql: wrong console keystrokes Nico <nicod@tiscalinet.it>
2001-02-20 13:20 ` Re: terminal psql: wrong console keystrokes Alessio Bragadini <alessio@albourne.com>
2001-02-20 14:03 ` Re: terminal psql: wrong console keystrokes Nico <nicod@tiscalinet.it>
@ 2001-02-20 14:21 ` Brett W. McCoy <bmccoy@chapelperilous.net>
0 siblings, 0 replies; 5+ messages in thread
From: Brett W. McCoy @ 2001-02-20 14:21 UTC (permalink / raw)
To: Nico <nicod@tiscalinet.it>; +Cc: pgsql-interfaces; Alessio Bragadini <alessio@albourne.com>; pgsql-general@postgresql.org
On Tue, 20 Feb 2001, Nico wrote:
> What internal settings make the psql interpete the keystrokes, and how to
> toggle them?
You need the GNU readline library installed on the machine where you have
Postgres installed. If you built PostgreSQL without the readline library
(and readline-devel, if you are using RPMs), you may need to rebuild it.
If you installed PostgreSQL as RPMs, you may just need to install the
readline rpm.
-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
To thine own self be true. (If not that, at least make some money.)
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2001-02-20 14:21 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-17 14:25 terminal psql: wrong console keystrokes Nico <nicod@tiscalinet.it>
2001-02-20 04:25 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
2001-02-20 13:20 ` Alessio Bragadini <alessio@albourne.com>
2001-02-20 14:03 ` Nico <nicod@tiscalinet.it>
2001-02-20 14:21 ` Brett W. McCoy <bmccoy@chapelperilous.net>
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