added TtyInput for forwarding a ansistream to the terminal.