Switch to line protocol
Fix bug during clear screen