Source code for seiscat.self.logo

# -*- coding: utf8 -*-
# SPDX-License-Identifier: GPL-3.0-or-later
"""Logo printing helpers for `seiscat self logo`."""
import shutil
import sys

from ..utils.logo import SEISCAT_LOGO, SEISCAT_LOGO_SMALL


def _logo_width(logo):
    """Return the maximum line width of a multi-line logo string."""
    return max(len(line) for line in logo.splitlines())