Write directly to tty

Hat tip to @Jille for the help in getting this right.