terminal screen clears before printing output.