I'm using gitbash ver 2.9.0, 64-bit, on Windows 7. It uses mintty version 2.0.3.
The gitbash shell most of the time seems to work fine. You can use the arrow keys, etc, as with any bash shell and they perform as expected, being able to scroll through prior commands, etc.
However, when using irb
or rails console
(which runs irb
) it is very flakey. Rather than scroll through prior commands, the up arrow just moves the cursor up the screen and enters what are probably up arrow control codes into the input buffer. In addition, irb
must be exited with ^C rather than ^D. The ^D does nothing except go into the input buffer (if I type ^D then ^C, it exits irb
because of the ^C, then exits gitbash because of the ^D).
I can't find much in the way of other reports on this issue and what little I've found is somewhat old. I've tried the solutions shown in this post: Backspace and arrow keys aren't working in IRB (Git Bash console) on windows machine, but they haven't changed the behavior at all.
Has anyone found a legitimate solution to this problem?