use get_pty only for sudo