RE: buffering woes

2003-02-06 Thread Simon Marlow
> >Hal Daume III <[EMAIL PROTECTED]> writes: > > > > > > > >>Not for me, GHC 5.04.2 (Solaris). > >> > >>here it goes right the first time, but then i have to type two more > >>letters (in this case 'b\n') to get it to respond to "hello". > >> > >> > > > >Solaris has a slightly bizarre buffer

Re: buffering woes

2003-02-05 Thread Lennart Augustsson
Malcolm Wallace wrote: Hal Daume III <[EMAIL PROTECTED]> writes: Not for me, GHC 5.04.2 (Solaris). here it goes right the first time, but then i have to type two more letters (in this case 'b\n') to get it to respond to "hello". Solaris has a slightly bizarre buffering scheme in "raw"

Re: buffering woes

2003-02-05 Thread Malcolm Wallace
Hal Daume III <[EMAIL PROTECTED]> writes: > Not for me, GHC 5.04.2 (Solaris). > > here it goes right the first time, but then i have to type two more > letters (in this case 'b\n') to get it to respond to "hello". Solaris has a slightly bizarre buffering scheme in "raw" terminal mode, whereby it

Re: buffering woes

2003-02-05 Thread Hal Daume III
Not for me, GHC 5.04.2 (Solaris). Nor with the GHC from CVS: 10:13am moussor:JavaInterp/ ~/nlg/ghc-cvs/ghc/compiler/ghc-inplace Test.hs -o test 150.50u 1.77s 2:48.29 90.4% 10:16am moussor:JavaInterp/ ./test > foo^H^H^Ctest: interrupted 10:16am moussor:JavaInterp/ ./test > foo You said: foo > hel

Re: buffering woes

2003-02-05 Thread Ferenc Wagner
Hal Daume III <[EMAIL PROTECTED]> writes: > I expect the following to work, but it doesn't. Yes it does. :-) Even without the hSetBuffering lines. GHC 5.04-1 Feri. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

buffering woes

2003-02-05 Thread Hal Daume III
I expect the following to work, but it doesn't. Can someone help: 9:53am moussor:JavaInterp/ cat > Test.hs import System.IO main = do hSetBuffering stdout NoBuffering hSetBuffering stdin NoBuffering loop where loop = do putStr "> " s <- getLine putS