mise API - v0.0.0
    Preparing search index...

    Function ansi_strip

    • Strips ANSI escape sequences from text.

      Applied at the pipe and redirect boundary so downstream consumers receive plain text, the way programs behind a real shell pipe see no color. This is a deliberate, documented deviation from the historical behavior, in which escape bytes leaked into pipes because color detection saw the terminal regardless of capture.

      Parameters

      • text: string

        Text possibly containing ANSI sequences.

      Returns string

      The text with all ANSI sequences removed.