The system function ConsoleLib.clearActiveWindow removes all displayed material from the active window. This includes erasing the constant information displayed in the current form. If the active window has a border, the border is not erased. The statement does not affect the ordering of the window stack or affect any windows that are above it in the window stack.
ConsoleLib.clearActiveWindow( )
Related reference
EGL library ConsoleLib