This is the mail archive of the
mailing list for the Cygwin project.
Re: Problem with Shift+Left or Right arrow in Cygwin locally (Ctrl isn't noticed) and through SSH (escape code isn't interpreted correctly)
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 7 Apr 2010 21:37:49 +0100
- Subject: Re: Problem with Shift+Left or Right arrow in Cygwin locally (Ctrl isn't noticed) and through SSH (escape code isn't interpreted correctly)
- References: <email@example.com>
> If I'm in Bash on my Ubuntu system I can use Ctrl+Left Arrow or Right
> Arrow to navigate one word at a time to the left and right. When I use
> Cygwin it doesn't react to the Ctrl, responding as if I only had
> pressed the Left or Right Arrow. Is there a way to fix this?
The standard Bash shortcuts for moving by a word that are Alt+f and
Alt+b, so "fix" is a bit strong here. But anyway, stick these two
lines into ~/.inputrc, restart bash, and you should be set:
And here's one way to put Ctrl+Up/Down to use:
Shift combinations have a 2 instead of the 5, in case you want to map
those to something. See this link for details on bash/readline key
> The next step is when I log in from an Ubuntu 9.10 system to Cygwin 6
> using SSH.
Cygwin 6? Anyway, the above should work in this case as well, as long
as you're using an xterm-compatible terminal on Ubuntu, which you are.
> $ echo $TERM
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple