David Degea
David Degea

Reputation: 1408

Haskell ghci command line. return value overwrite last prompt

I installed ghci on Max OSX.

But everytime, the return value overwrite my last ghci prompt. See below.

Falseghci>null[1,2,3]
Luke_ghci>

"False" over write my last line ghci prompt. (should be Luke_ghci)

So weird. How to solve it? Thanks.

Upvotes: 0

Views: 369

Answers (1)

sclv
sclv

Reputation: 38901

Copied from the above-linked message:

Aha! That led me to find it: I had TERM set to 'ansi'. ghci + Haskeline works find if TERM is set to any of rxvt, vt52, vt100, vt102 or xterm. Don't know what in terminfo Haskeline is relying on, but 'ansi' doesn't have it!

Upvotes: 1

Related Questions