Skip to content

copilot CLI shows ANSI escape sequences making my life sad #1679

@ilanpillemer

Description

@ilanpillemer

Describe the feature or problem you'd like to solve

copilot CLI should have a mechanism to disable ANSI escape sequences

Proposed solution

copilot CLI should have a switch like '--no-colour' or honour the env variable TERM=DUMB to turn off ANSI escape sequences.

Example prompts or workflows

It should show the below --- WITHOUT the ANSI escape sequences

% copilot
�[?u�[?1049h�]11;?�\�[?25l�[?2004h�[?1004h�[?1002h�[?1006h�[?2026h�[18;1H�[2K∙ Loading environment:�[20;1H�[2K ~/Repos/�[21;1H�[2K────────────────────────────────────────────────────────────────────────────────�[22;1H�[2K❯ Type @ to mention files, / for commands, or ? for shortcuts�[23;1H�[2K────────────────────────────────────────────────────────────────────────────────�[24;1H�[2K shift+tab switch mode�[?2026l�[?2004h�]9;4;0;0��[?2004h�[?1006l�[?1002l�[?1002h�[?1006h�[?2026h�[18;1H�[2K∙ Loading environment: 3 plugins�[?2026l�[?2026h�[24;1H�[2K shift+tab switch mode Remaining reqs.: 20.349999999999937%�[?2026l�[?1004l�[?2004l�[?1006l�[?1002l�[?2004h�[?2004h�[?1002h�[?1006h�[?1006l�[?1002l�[?1002h�[?1006h�[?2026h�[2;1H�[2K● 🧪 Experimental mode is enabled. These features are not stable, may have�[3;1H�[2K bugs, and may be removed in the future.�[5;1H�[2K╭──────────────────────────────────────────────────────────────────────────────╮�[6;1H�[2K│ Confirm folder trust │�[7;1H�[2K│ │�[8;1H�[2K│ ╭──────────────────────────────────────────────────────────────────────────╮ │�[9;1H�[2K│ │ /Users/ilan.pillemer@xxx.com/Repos/ │ │�[10;1H�[2K│ ╰──────────────────────────────────────────────────────────────────────────╯ │�[11;1H�[2K│ │�[12;1H�[2K│ Copilot may read files in this folder. Reading untrusted files may lead │�[13;1H�[2K│ Copilot to behave in unexpected ways. With your permission, Copilot may │�[14;1H�[2K│ execute code or bash commands in this folder. Executing untrusted code is │�[15;1H�[2K│ unsafe. │�[16;1H�[2K│ │�[17;1H�[2K│ Do you trust the files in this folder? │�[18;1H�[2K│ │�[19;1H�[2K│ ❯ 1. Yes │�[20;1H�[2K│ 2. Yes, and remember this folder for future sessions │�[21;1H�[2K│ 3. No (Esc) │�[22;1H�[2K│ │�[23;1H�[2K│ ↑↓ to navigate · Enter to select · Esc to cancel │�[24;1H�[2K╰──────────────────────────────────────────────────────────────────────────────╯�[?2026l�[?2026h�[2;1H�[2K● 💡 No copilot instructions found. Run /init to generate a�[3;1H�[2K copilot-instructions.md file for this project.�[?2026l�[?1006l�[?1002l�[?1002h�[?1006h

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions