
28 Sep
2014
28 Sep
'14
4:43 a.m.
On 2014年09月28日 16:42, PENG, BO YA wrote:
I'm trying to implement the arrow key functionality for a systemf REPL to recall previously entered lines. I think I should save the previous lines in a list and then traverse through the list when an arrow key is pressed, but I'm no sure how to detect an arrow key and implement this functionality. Can anyone give a brief description about the implementation or point me to some other resources? Thanks!
Perhaps readline would work for you? http://hackage.haskell.org/package/readline Cheers, Travis