Bug#846279: ghc: Problems with Backspace, Delete and arrow keys

Ilias Tsitsimpis i.tsitsimpis at gmail.com
Wed Nov 30 11:00:33 UTC 2016


Control: tags -1 + moreinfo

Hi Richard,

On Tue, Nov 29, 2016 at 07:59PM, Richard Smith wrote:
> Since upgrading to ghc 8.0.1, when trying to backspace user-entered text (e.g. a getLine event) in a
> running haskell program (whether compiled with this version of ghc, or interpreted), the terminal
> displays "^?" for backspace, "^[[3~" for delete and other codes for arrow keys.

This is the indented behavior of getLine. It has always been like this,
and didn't change with ghc v8.0.1.

> It appears to be previously reported, and resolved, here: https://ghc.haskell.org/trac/ghc/ticket/2606

Please see comments 19 to 22 from the above ticket. They describe how
getLine is supposed to work, and how to get the indented results using
haskeline instead.

Does the above resolve your issue?

-- 
Ilias



More information about the Pkg-haskell-maintainers mailing list