#2606: Backspace, delete, etc. don't work in ghci in HEAD
-------------------------------+--------------------------------------------
Reporter: tim | Owner:
Type: bug | Status: reopened
Priority: normal | Milestone:
Component: GHCi | Version: 6.10.1
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: x86_64 (amd64) |
-------------------------------+--------------------------------------------
Comment (by judah):
Let me address each of those problems separately:
1) Ctrl-<arrow> doesn't work
Both editline and haskeline have ways to be told about ctrl-<arrow>.
For ghci-haskeline, instructions to add ctrl-<arrow> are at:
http://trac.haskell.org/haskeline/wiki/CustomKeyBindings
For the standard ghci with editline, you should add the following to your
.editrc file:
{{{
bind "\e[1;5D" vi-prev-word
bind "\e[1;5C" vi-next-word
}}}
where the key sequence might need to be replaced depending on your
terminal.
2) The delete key doesn't work
I agree that the delete behavior in editline is problematic; there's no
really satisfying fix short of improving or replacing that library. But
<delete> *should* work in ghci-haskeline. If it doesn't, can you please
do the following:
- Type {{{ghc -e getLine}}}, press `delete` and then `return` to see the
control sequence for the `delete` key.
- Type {{{infocmp}}} and paste the line with the kdch1 entry.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2606#comment:16>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs