#2606: Backspace, delete, etc. don't work in ghci in HEAD
-----------------------+----------------------------------------------------
    Reporter:  tim     |        Owner:       
        Type:  bug     |       Status:  new  
    Priority:  normal  |    Milestone:       
   Component:  GHCi    |      Version:  6.9  
    Severity:  major   |   Resolution:       
    Keywords:          |     Testcase:       
Architecture:  x86     |           Os:  Linux
-----------------------+----------------------------------------------------
Comment (by judah):

 Replying to [comment:3 tim]:
 > Replying to [comment:2 judah]:
 > > Do you reproduce the bug by opening up an xterm, and then typing
 'ghci'?  If so, what happens when you type "stty -a" in the xterm?
 >
 > Yes. "stty -a" says: (...)
 >
 > If I enter ghci, hit Ctrl-Z, and bring it back in the foreground so the
 keys start working again, and then type {{{:!stty -a}}}, the output looks
 exactly the same to me as before entering ghci.
 >
 Just to clarify: what happens when you type :!stty -a from inside ghci
 immediately after entering ghci?

 > I've never had problems with key mappings on this computer that I can
 recall, except for now with the HEAD.

 I suspect this is a problem with libedit, since HEAD replaced readline
 with it it between 6.8 and 6.10.  Do you know of any other programs on
 your machine that use libedit and whether they have the same issue?
 Otherwise, would it be possible for you to compile the following C program
 (with {{{gcc -ledit}}}) and check its behavior inside the xterm?

 {{{
 #include <stdio.h>
 #include <editline/readline.h>

 int main(void) {
     char *result;
     rl_initialize();
     result = readline("enter:");
     printf("%s\n",result);
     return 0;
 }
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2606#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to