Backspace, delete, etc. don't work in ghci in HEAD
$ 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 executingdeclare -x TERM=dumb
and then starting ghci in an xterm, but the keys still didn't work - declaring
TERM
asvt100
didn't work either. - Ubuntu 7.10 with xmonad (I think 0.3), if that helps.
Trac metadata
Trac field | Value |
---|---|
Version | 6.9 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture | x86 |