#2606: Backspace, delete, etc. don't work in ghci in HEAD
-----------------------+----------------------------------------------------
    Reporter:  tim     |       Owner:       
        Type:  bug     |      Status:  new  
    Priority:  normal  |   Component:  GHCi 
     Version:  6.9     |    Severity:  major
    Keywords:          |    Testcase:       
Architecture:  x86     |          Os:  Linux
-----------------------+----------------------------------------------------
 {{{
 $ ghci
 GHCi, version 6.9.20080912: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer ... linking ... done.
 Loading package base ... linking ... done.
 Prelude> a^? [RET]
 <interactive>:1:3: lexical error at character '\DEL'
 }}}
 When I pressed my Backspace key, the {{{^?}}} showed up. When I pressed
 Delete, {{{^[[3~}}} showed up and ghci apparently thought I'd typed an
 {{{'\ESC'}}}. Arrow keys didn't work either (also seemed to be mapped to
 {{{'\ESC'}}} and {{{Ctrl-U}}} seemed to send a {{{'\NAK'}}}. However, when
 I hit {{{Ctrl-Z}}} to suspend ghci and then brought it back to the
 foreground, all the keys started working.

  * everything works fine if I start ghci in a shell in emacs, instead of
 in an xterm (in the latter, {{{$TERM=xterm}}}
  * emacs sets {{{$TERM}}} to "dumb", so I tried executing {{{declare -x
 TERM=dumb}}} and then starting ghci in an xterm, but the keys still didn't
 work
  * declaring {{{TERM}}} as {{{vt100}}} didn't work either.
  * Ubuntu 7.10 with xmonad (I think 0.3), if that helps.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2606>
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

Reply via email to