tty: vt, get rid of weird source code flow