check for PS1 before clear screen