In the cli output classes this method will clear terminal screen if the standard output is a terminal.