buffering woes

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Wed, 5 Feb 2003 18:43:28 +0000

Hal Daume III <hdaume@ISI.EDU> 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 buffers 4 characters at a time, instead of passing
on each character immediately.  Try

    stty -icanon min 1

(or something similar) to fix it?