Windows 7, msys bash input problem

118 views
Skip to first unread message

Robin Watts

unread,
Oct 21, 2011, 8:15:52 AM10/21/11
to msy...@googlegroups.com
Gents,

I've been using your excellent msysgit on windows XP for ages, and
having just moved to windows 7, I've set it up again. While I was
installing it, I decided to try and tweak the command line editing
behaviour of the shell so that Ctrl-left and Ctrl-Right move backwards
and forwards by a word at a time (to match the windows command prompt,
as scrolling around a char at a time can be SLOW in long command lines).

Supposedly I can do this by editing the inputrc file, and indeed
following the advice I found here:

http://www.genmaint.com/msysgit-bash-how-to-enable-ctrlleft-right-arrows.html

I thought I had it working - but it seems that Ctrl-Left/Right give the
same codes as normal Left/Right under msys bash for me.

Is this something that can be fixed? Is this even under your control? Am
I raising this in the right forum?

Thanks in advance for any help,

Robin

Kirill

unread,
Oct 21, 2011, 9:29:39 AM10/21/11
to Robin Watts, msy...@googlegroups.com
Hi,

Below is not the answer that you're looking for, but a workaround.

On Fri, Oct 21, 2011 at 8:15 AM, Robin Watts wrote:
> decided to try and tweak the command line editing behaviour of the shell so
> that Ctrl-left and Ctrl-Right move backwards and forwards by a word at a
> time (to match the windows command prompt, as scrolling around a char at a
> time can be SLOW in long command lines).

Until you find the answer, you can use Alt+F and Alt+B to move by words.

--
Kirill.

baldrick

unread,
Oct 27, 2011, 6:57:03 PM10/27/11
to msysGit
Robin,

Changing ~/.inputrc worked for me ... contents of mine are:-

"\e[C": forward-word
"\e[D": backward-word

Although reloading .inputrc using ^X^R didn't work ... starting a new
shell did.

Regards,
Gavin.

eze...@gmail.com

unread,
May 30, 2015, 7:52:20 AM5/30/15
to msy...@googlegroups.com, general...@googlemail.com
The problem here is that, as msysgit gives the same codes for Ctrl+Left Arrow/Right Arrow as for just Left Arrow/Right Arrow. 
Thus, changing ~/.inputrc means now it's always on "move word by word" mode, even when you're trying to move character by character (without Ctrl pressed).

Any updates on this?
Reply all
Reply to author
Forward
0 new messages