'Erases display in a specific way.
:param int type_of: defines the way the line should be erased in:
* ``0`` -- Erases from cursor to end of screen, including
cursor position.
* ``1`` -- Erases from beginning of screen to cursor,
including cursor position.
* ``2`` -- Erases complete display. All lines are erased
and changed to single-width. Cursor does not move.
:param bool private: when ``True`` character attributes are left
unchanged **not implemented**.'

def erase_in_display(self, type_of=0, private=False):

    interval = (range((self.cursor.y + 1), self.lines), range(0, self.cursor.y), range(0, self.lines))[type_of]
    for line in interval:
        self.buffer[line][:] = (self.cursor.attrs for _ in range(self.columns))
    if (type_of in [0, 1]):
        self.erase_in_line(type_of)
