Kit
Kit

Reputation: 101

How to make ghci support ^p to go up?

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.

Upvotes: 10

Views: 236

Answers (1)

Greg Bacon
Greg Bacon

Reputation: 139491

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

Upvotes: 8

Related Questions