[Haskell-cafe] Re: [Haskell] ANN: ghci-haskeline 0.1

Manlio Perillo manlio_perillo at libero.it
Tue Jan 13 13:50:17 EST 2009


Judah Jacobson ha scritto:
> [...]
>>
>> (For those interested: rlwrap is available in cygwin.
>> It used to work very well on old ghci, when line
>> editing wasn't available.)
> 
> This does sound useful; the main difficulty is that when a program has
> stdin piped from another process it may behaved differently.  For
> example, ghci uses block buffering and doesn't print its prompt when
> stdin doesn't appear to be a terminal.  The solution on POSIX is
> probably to use some sort of pseudo-terminal support; I don't know
> what the right thing to do on Windows is.
> 

On Windows you can create a Console object:
http://msdn.microsoft.com/en-us/library/ms682087.aspx


Regards  Manlio Perillo


More information about the Haskell-Cafe mailing list