ghci command history broken under rxvt and xterm

Bruno Martínez br1 at internet.com.uy
Tue Feb 21 16:34:30 EST 2006


On Mon, 20 Feb 2006 12:10:03 -0200, Simon Marlow  
<simonmarhaskell at gmail.com> wrote:

> 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?

It's
b80c3a86a1589398d6f111540d9e8d15 *ghc-6-4-1.zip

I'm pretty sure I just downloaded it from haskell.org.

The only thing unusual is that I changed ghcii.sh as described in a recent  
post.  I'm running from a fresh Windows/Cygwin/Haskell install.   Cygwin  
may not be the lastest, but it's less than 3 months old.

> 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).

Another difference is that under Cygwin quitting with Ctrl-Z works, but it  
doesn't under rxvt.  Very strange.

Bruno




More information about the Glasgow-haskell-bugs mailing list