7f3d874be4
and don't return error, if non-terminals. This fix allows curses to work into full duplex pipes under control of main program, like good old curses does.