Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal showing “^[OA” when up arrow (↑) is pressed

Tags:

terminal

The up arrow in the terminal should bring up the previous command. My terminal (including iTerm2 and Intellij IDEA terminal) shows ^[OA when I press the up arrow ().

If I press return, the previous command is still executed. It works fine and I can see the command if I press CTRL+C first.

like image 791
Devs love ZenUML Avatar asked Nov 30 '25 02:11

Devs love ZenUML


1 Answers

In a regular bash terminal this behavior happens when you’re in “keypad mode”. You are able to run echo -ne "\033[?1l" to reset back to ANSI mode.

like image 184
Sebin Avatar answered Dec 04 '25 07:12

Sebin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!