code: def erase_characters(self, count=None):
          
          self.dirty.add(self.cursor.y)
          count = count or 1
  
          line = self.buffer[self.cursor.y]
          for x in range(self.cursor.x,
                         min(self.cursor.x + count, self.columns)):
              line[x] = self.cursor.attrs
docs: Erase the indicated # of characters, starting with the
          character at cursor position. Character attributes are set
          cursor attributes. The cursor remains in the same position.
  
          :param int count: number of characters to erase.
  
          .. note::
  
             Using cursor attributes for character attributes may seem
             illogical, but if recall that a terminal emulator emulates
             a type writer, it starts to make sense. The only way a type
             writer could erase a character is by typing over it.