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!