Minor changes to ansi renderer to avoid effects to lastresult file.