fixed xterm input issues