
On Tue, Oct 14, 2003 at 03:47:29PM +0100, Glynn Clements wrote:
Removing the TTY handling from hSetBuffering is even simpler. For "simple, stupid programs", we could just provide e.g. hSetCooked, so programs which want the current behaviour can use:
hSetBuffering stdin NoBuffering hSetCooked stdin False
Programs which don't want this behaviour would just omit the hSetCooked call, which is substantially easier than the current situation (figure out if stdin is a tty, save the terminal settings, disable buffering, restore the settings).
yes! this would be ideal. John -- --------------------------------------------------------------------------- John Meacham - California Institute of Technology, Alum. - john@foo.net ---------------------------------------------------------------------------