Wrap the ANSI control sequence by separate macros in "clear" function.