Hi Richard,

On Wed, Nov 30, 2016 at 08:28PM, Richard Smith wrote:
> The issue is happening before getLine receives the user's input. So, suppose I
> have a basic function that asks for my name and then echoes it back to the
> terminal; if I make a typo while inputting my name and then try to backspace 
> to
> correct, the console will display the "^?" characters. E.g.

Unfortunately, I cannot reproduce this. Backspace works as expected for
me for the following program:

    $ echo "main = getLine >>= putStrLn" > Test.hs
    $ ghc -o test Test.hs

using both v7.10.3 and v8.0.1.

Could you please try the following program in C:

================== %>< ============================
#include <stdio.h>

int main(void)
{
        char s[32];

        fgets(s, 32, stdin);
        printf("%s", s);
        return 0;
}
================== ><% ============================

Does backspace work in that case?

-- 
Ilias

_______________________________________________
Pkg-haskell-maintainers mailing list
Pkg-haskell-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-haskell-maintainers

Reply via email to