Ticket #2606 (closed bug: invalid)
Backspace, delete, etc. don't work in ghci in HEAD
Description
$ 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.
Change History
Note: See
TracTickets for help on using
tickets.
