tty: more fixes