ui_newt: check if standard streams are ttys