def buffer_rotate(self, n):
        """
        This method is used for when operations like replacing, insertion, deletion
        are needed in the middle of the character buffer.
        :param n:
        :return:
        """
        self._buffer.rotate(n)
        try:
            yield
        finally:
            self._buffer.rotate(-n)

        This method is used for when operations like replacing, insertion, deletion
        are needed in the middle of the character buffer.
        :param n:
        :return:
        
system/shscreens.py