When compiling TUI on Cygwin I got a link failure because setlinebuf is not available. I replaced the call to setlinebuf in tuiIO.c(tui_initialize_io) with: setvbuf (tui_rl_outstream, NULL, _IOLBF, 0); I do not know if this is acceptable for all platforms, so I'll leave it up to others to provide a proper patch. Ton van Overbeek