Fixed xterm implementation