Thread: BUG #15748: arrow keys doesn't work

BUG #15748: arrow keys doesn't work

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      15748
Logged by:          Biruk Takele
Email address:      biruktakele24@gmail.com
PostgreSQL version: 10.3
Operating system:   linux
Description:

the arrow keys write like this ^[[A, ^[[B, ^[[C, ^[[D The commands history
"is not working": meaning I cannot retrieve these
last commands I entered by hitting the top arrow key.
Instead, I have to type them again.
it happens on Linux PostgreSQL shell.
can you solve me this problem?


Re: BUG #15748: arrow keys doesn't work

From
Christoph Berg
Date:
Re: PG Bug reporting form 2019-04-11 <15748-87e07bc377c37506@postgresql.org>
> Operating system:   linux

Which Linux exactly? How did you install PostgreSQL?

> the arrow keys write like this ^[[A, ^[[B, ^[[C, ^[[D The commands history
> "is not working": meaning I cannot retrieve these
> last commands I entered by hitting the top arrow key.
> Instead, I have to type them again.
> it happens on Linux PostgreSQL shell.
> can you solve me this problem?

Usually this just means that the $TERM variable in your shell doesn't
match the terminal you are really using.

Christoph