#2606: Backspace, delete, etc. don't work in ghci in HEAD
-------------------------------+--------------------------------------------
Reporter: tim | Owner:
Type: bug | Status: closed
Priority: normal | Component: GHCi
Version: 7.2.1 | Resolution: invalid
Keywords: | Testcase:
Blockedby: | Difficulty: Unknown
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: None/Unknown
-------------------------------+--------------------------------------------
Comment(by Lemming):
Replying to [comment:20 judahj]:
> One fix to the problem you've described is to set `stdin` to
`LineBuffering`, using `System.IO.hSetBuffering`. On some platforms that
will enable the delete key, but probably not the arrow keys.
I tried that on Suse Linux with GHC-6.12.3 and Ubuntu Linux with
GHC-7.2.1. It enables delete key but not the arrow keys when I respond to
a getLine. But with that mode I cannot see any longer what I enter to the
GHCi prompt! I tried hSetEcho stdin True, but this didn't help. :-(
> If you want full interactive behavior for line input, you will need to
use a package such as [http://hackage.haskell.org/package/haskeline
haskeline] or [http://hackage.haskell.org/package/readline readline].
How can I find out, whether my GHC was built with haskeline, editline or
readline? I use the GHC one from the Linux Tarball.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2606#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs