#2606: Backspace, delete, etc. don't work in ghci in HEAD
-------------------------------+--------------------------------------------
Reporter: tim | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: GHCi | Version: 6.10.1
Severity: major | Resolution: invalid
Keywords: | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: x86_64 (amd64) |
-------------------------------+--------------------------------------------
Changes (by japple):
* version: 6.9 => 6.10.1
* architecture: x86 => x86_64 (amd64)
Comment:
ctrl-<left arrow> does not work. #2741 lists a hacky solution for delete.
Is there a solution for the rest of they key bindings? ghci-haskeline
makes no visible difference in the behavior.
$ ghci
GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> should move one word back;5D
$ uname -a
Linux XXXXXXX 2.6.23.17-88.fc7 #1 SMP Thu May 15 00:02:29 EDT 2008 x86_64
x86_64 x86_64 GNU/Linux
$ stty -a
speed 38400 baud; rows 24; columns 136; 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
Prelude> System.IO.hIsTerminalDevice System.IO.stdin
True
Prelude> System.IO.hIsTerminalDevice System.IO.stdout
True
Prelude> System.Environment.getEnv "TERM"
"xterm"
$ ls -lh /usr/lib/libedit.*
lrwxrwxrwx 1 root root 17 2009-01-29 19:15 /usr/lib/libedit.so ->
libedit.so.0.0.26
lrwxrwxrwx 1 root root 17 2009-01-29 16:56 /usr/lib/libedit.so.0 ->
libedit.so.0.0.26
-rwxr-xr-x 1 root root 149K 2007-11-04 04:31 /usr/lib/libedit.so.0.0.26
$ ls -lh /usr/lib64/libedit.*
lrwxrwxrwx 1 root root 17 2009-01-29 19:15 /usr/lib64/libedit.so ->
libedit.so.0.0.26
lrwxrwxrwx 1 root root 17 2009-01-29 16:55 /usr/lib64/libedit.so.0 ->
libedit.so.0.0.26
-rwxr-xr-x 1 root root 167K 2007-11-04 04:28 /usr/lib64/libedit.so.0.0.26
ghci performs fine in emacs
The C program does not recognize ctrl+<left arrow>
:browse System.Console.Editline.Readline and ghci history work fine
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2606#comment:14>
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