tui: remove dead code
TUI: write user input to the PTY in one go rather than character-by-character
login: set terminal foreground process group, so CTRL-C works