Move |ansiPrint| function to a MMANSIAction.