run local command through PTY for IO redirection