Here is how I reproduce the issue:
Log onto psql and hit up arrow (shows last event from history as expected):
mydb=> select * from some_table;
Run any select query.
Hit up arrow a second time (shows non-translated input from keyboard):
mydb=> ^[[A
I'm using psql 10.11. Anyone have this issue before, or know how to fix it? Goal is for the up arrow to always show the last command from history.