implemented clear for ansi