import shutil
import textwrap


def wrap(text: str, indent: str = "") -> str:
    """
    Indent and line-wrap a string to fit in the current terminal width.
    """
    width = shutil.get_terminal_size((80, 20)).columns
    return textwrap.indent(textwrap.fill(text, width - len(indent)), indent)