logo       

Re: ghci command history broken under rxvt and xterm: msg#00054

lang.haskell.glasgow.bugs

Subject: Re: ghci command history broken under rxvt and xterm

Bruno Martínez wrote:
When using ghci with rxvt under cygwin, the command history doesn't work. When I press the up arrow, for example, the cursor moves up, instead of showing the previous command. xterm has the same problem, but with cygwin's default console it works.

I don't know where to start looking. Maybe this is something solveable thinkering with ~/.inputrc, but I'm not knowledgeable enough about it.

GHCi doesn't use readline on Windows, at least by default, so nothing is interpreting the up or down arrow keys so they generate some control sequences that just move the cursor around.

Something strange is afoot though, because you say that it works under a cygwin console - that's not the case here. What version of GHC is this? where did you get it?

I believe that GHC can be compiled against mingw's readline library, but I seem to recall it was pretty flaky which is why we don't do it. I'd be happy to use a cut-down line editing library on Windows if someone could do the work of making sure it did something reasonable in all the environments we're interested in (windows command shell, cygwin terminal window, xterm).

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise