    def __init__(self, filename, height=25, width=80, encoding="cp437", strip=False, rate=2):
        """
        :param filename: the file containingi the ANSI art.
        :param height: required height of the renderer.
        :param width: required width of the renderer.
        :param encoding: text encoding ofnthe file.
        :param strip: whether to strip CRLF from the file content.
        :param rate: number of lines to render on each update.
        """
        super().__init__(height, width)
        # pylint: disable-next=consider-using-with
        self._file = open(filename, "rb")
        self._strip = strip
        self._rate = rate
        self._encoding = encoding
:param filename: the file containingi the ANSI art.
:param height: required height of the renderer.
:param width: required width of the renderer.
:param encoding: text encoding ofnthe file.
:param strip: whether to strip CRLF from the file content.
:param rate: number of lines to render on each update.
asciimatics/renderers/players.py