#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
-------------------------------+--------------------------------------------
Changes (by judahj):
* status: new => closed
* resolution: => invalid
Comment:
Yes, that is the intended behavior of `getLine`.
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.
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].
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2606#comment:20>
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