// SPDX-FileCopyrightText: 2026 Nikita Goncharov
// SPDX-License-Identifier: GPL-3.0-or-later
/// Strips ANSI escape codes from a string.
///
/// This function parses the input character by character, detecting ANSI escape
/// sequences (starting with `\u{001b}`) and skipping them entirely.