Ticket #126 (new defect)
Opened 10 months ago
Vi mode should not treat Esc b as Meta-b
|Reported by:||akio||Owned by:|
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.