My question is how to make my ghci
react properly on my home
and end
press.
I learned that ghci
use haskeline
to react to user input, and haskeline
's behavior is partially defined in ~/.haskeline
to some extent.
I have being suffering from the lack of support for end
key and home
key of ghci
for a long time. So I tried to define my own ~/.haskeline
file.
Firstly:
bind: a home
bind: b end
keyseq: "a" home
keyseq: "b" end
bind: left home
bind: right end
Both behave as when I press a
then the cursor to the most left and similarly to others.
Secondly:
bind: home a
bind: end b
It shows that my ghci
seems to ignore my home
and end
press absolutely.
So how could I send home
and end
key to ghci
and haskline
?