#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 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:
{{{
speed 38400 baud; rows 41; columns 89; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2
= <undef>;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase =
^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff -iuclc
-ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke
}}}
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.
> Alternately, if you start ghci in such a way as to reproduce the bug,
what happens when you run the following commands from inside ghci:
>
> {{{
> System.IO.hIsTerminalDevice System.IO.stdin
True
> System.IO.hIsTerminalDevice System.IO.stdout
True
> System.Environment.getEnv "TERM"
"xterm"
The values for these are the same both while the bug is exhibiting itself,
and after suspending and re-activating ghci.
> Finally: what version of libedit are you building against?
>
{{{
$ ls -lh /usr/lib/libedit.*
lrwxrwxrwx 1 root root 14 2008-08-02 23:20 /usr/lib/libedit.so.2 ->
libedit.so.2.9
-rw-r--r-- 1 root root 106K 2007-04-27 09:39 /usr/lib/libedit.so.2.9
}}}
and I don't have any other versions floating around.
I've never had problems with key mappings on this computer that I can
recall, except for now with the HEAD.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2606#comment:3>
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