Fix bug in serial terminal for width > 80 characters