通过歌词生成屏幕需要显示的内容

def make_display_lines(self):
        """通过歌词生成屏幕需要显示的内容"""
        self.screen_height, self.screen_width = self.linesnum()  # 屏幕显示行数

        display_lines = ['']
        display_lines.append(self._title + '\r')
        display_lines.append('')

        scroll_line_num = self.screen_height - 6
        for linenum in range(scroll_line_num):
            if scroll_line_num//2 - linenum > self.markline - self.topline or \
                    linenum - scroll_line_num//2 >= len(self._lines) - self.markline:
                display_lines.append('\r')
            else:
                line = self._lines[self.markline - (scroll_line_num//2 - linenum)]
                line = line.strip('\n')
                l = self.center_num(line)
                flag_num = (self.screen_width - l) // 2
                if linenum == scroll_line_num//2:
                    i = color_func(self.c['LRC']['highlight'])(line)
                    display_lines.append(' ' * flag_num + i + '\r')
                else:
                    line = color_func(self.c['LRC']['line'])(line)
                    display_lines.append(' ' * flag_num + line + '\r')

        display_lines.append('')  # 空行
        display_lines.append(self.center_suffix_selected() + '\r')  # 歌词页面标题

        self.display_lines = display_lines