I had this problem trying to run CygWin Bash using ConEmu opening a new console in a new tab, and the other answers didn't help me. The arrow keys worked fine except in shell tools (i.e. mongo
). There, the arrow keys were mapped as A (up), B (down), C (right) and D (left).
In ConEmu window, navigate to:
Elipsis Menu (three bars) > Settings > Startup > Tasks
And locate the CygWin Bash entry in the Predefined tasks list: {Bash::CygWin bash}
In the lower text area I initially had the following that caused the problem of the arrows:
set CHERE_INVOKING=1 & set "PATH=%ConEmuDrive%\tools\cygwin\bin;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe -new_console:p %ConEmuDrive%\tools\cygwin\bin\bash.exe --login -i -new_console:C:"%ConEmuDrive%\tools\cygwin\Cygwin.ico"
I changed it to the following and the arrows worked:
-new_console:p %ConEmuDrive%\tools\cygwin\bin\bash.exe --login -i -new_console:C:"%ConEmuDrive%\tools\cygwin\Cygwin.ico"