[Bug 854654] New: clear command leaves residue characters behind