turn off line buffering in __startwin(), turn it back on in endwin()