Use common pseudo-tty across commands.

Also some attempt to get vim working; no luck yet. :-(