Use pty for rerecord tasks.