github / github/copilot-cli

copilot CLI shows ANSI escape sequences making my life sad

Offen
#1,679 0 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:terminal-rendering
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### 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∙ Loading environment: ~/Repos/────────────────────────────────────────────────────────────────────────────────❯ Type @ to mention files, / for commands, or ? for shortcuts──────────────────────────────────────────────────────────────────────────────── shift+tab switch mode[?2026l[?2004h]9;4;0;0[?2004h[?1006l[?1002l[?1002h[?1006h[?2026h∙ Loading environment: 3 plugins[?2026l[?2026h shift+tab switch mode Remaining reqs.: 20.349999999999937%[?2026l[?1004l[?2004l[?1006l[?1002l[?2004h[?2004h[?1002h[?1006h[?1006l[?1002l[?1002h[?1006h[?2026h● 🧪 Experimental mode is enabled. These features are not stable, may have bugs, and may be removed in the future.╭──────────────────────────────────────────────────────────────────────────────╮│ Confirm folder trust ││ ││ ╭──────────────────────────────────────────────────────────────────────────╮ ││ │ /Users/ilan.pillemer@xxx.com/Repos/ │ ││ ╰──────────────────────────────────────────────────────────────────────────╯ ││ ││ Copilot may read files in this folder. Reading untrusted files may lead ││ Copilot to behave in unexpected ways. With your permission, Copilot may ││ execute code or bash commands in this folder. Executing untrusted code is ││ unsafe. ││ ││ Do you trust the files in this folder? ││ ││ ❯ 1. Yes ││ 2. Yes, and remember this folder for future sessions ││ 3. No (Esc) ││ ││ ↑↓ to navigate · Enter to select · Esc to cancel │╰──────────────────────────────────────────────────────────────────────────────╯[?2026l[?2026h● 💡 No copilot instructions found. Run /init to generate a copilot-instructions.md file for this project.[?2026l[?1006l[?1002l[?1002h[?1006h

### Additional context

Image

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.