[haskeline] #126: Vi mode should not treat Esc b as Meta-b
haskeline
haskeline at projects.haskell.org
Tue Nov 26 08:18:05 GMT 2013
#126: Vi mode should not treat Esc b as Meta-b
-------------------+--------------------------------------------------------
Reporter: akio | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Version: 0.6 | Keywords:
-------------------+--------------------------------------------------------
When I use a Haskeline application under GNU screen on Linux, the vi mode
doesn't work well. Specifically, when I press Esc and then 'b' in insert
mode, the application does not respond to it, if I hit these keys fast
enough. The expected behavior is to go into the normal mode, then move the
cursor back by one word. As far as I know, GNU readline, zsh and vim all
behave this way.
It seems that the key sequence is being interpreted as a Meta-b. I think
this behavor is inconvenient in the vi mode.
It looks like in {{{System.Console.Haskeline.Vi}}}, we could define key
bindings for all meta keys so that the line editor behaves as if Esc was
pressed when it sees a meta key. If this is an acceptable solution, I'm
happy to provide a patch.
--
Ticket URL: <http://trac.haskell.org/haskeline/ticket/126>
haskeline <http://example.org/>
My example project
More information about the Haskeline
mailing list