Fixed TerminalInputStream.