Add PTY-based ex, not finished.