Prevent console background color change event on same color