10

I use Ctrl p a lot instead of up arrow to go up on Terminal. How to make ghci support Ctrl p to go up?

I use ghci from ghc98 from port. Mac OS X 10.5.8.

Don Stewart
  • 137,316
  • 36
  • 365
  • 468
Kit
  • 101
  • 2

1 Answers1

8

Customize haskeline, e.g.,

$ cat ~/.haskeline 
bind: ctrl-p up

To enable all the emacs bindings, you can specify that as a user preference:

$ cat ~/.haskeline
editMode: Emacs
Greg Bacon
  • 134,834
  • 32
  • 188
  • 245