github / github/copilot-cli

Add a plain-text / ASCII-only mode for terminal output

未关闭
#2,917 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:configuration area:terminal-rendering
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the feature or problem you'd like to solve

When Copilot CLI exits, it prints a summary that includes Unicode box-drawing characters / decorative glyphs, for example:

```text
╭─╮╭─╮ Changes +9 -0
╰─╯╰─╯ Requests 1 Premium (7h 19m 47s)
█ ▘▝ █ Tokens ↑ 989.8k • ↓ 41.2k • 781.2k (cached)
▔▔▔▔ Resume copilot --resume=xxx
```

In earlier versions, the same summary was printed as plain text without the decorative characters:

```text
Changes +1251 -337
Requests 1 Premium (17h 55m 30s)
Tokens ↑ 5.3m • ↓ 52.4k • 4.9m (cached) • 14.4k (reasoning)
```

I would like a way to disable the special characters and output a plain-text summary instead.

### Proposed solution

Provide one of the following:

- a CLI flag such as `--plain`, `--no-unicode`, `--ascii-only`, or `--no-icons`
- an environment variable such as `COPILOT_CLI_ASCII_ONLY=1`
- an automatic fallback to plain text when the terminal does not support Unicode or when output is redirected to logs/pipes

### Why this matters

- Makes the output easier to consume in scripts and logs
- Improves compatibility with minimal terminals and remote SSH sessions
- Makes it easier to copy/paste summaries into issues, tickets, or documentation
- Preserves the older plain-text behavior for users who prefer it

### Additional context

If this capability already exists, please point me to the documentation. If it is planned, it would be helpful to know the expected flag or configuration key.

贡献指南

打开贡献指南

调研方向

No file, test, or entry point is named. Start by locating the terminal summary output and the CLI option or environment-variable parsing, then compare the current and requested plain-text forms. Done means users can select ASCII-only output, or it falls back as specified, with coverage for the summary output and the chosen configuration path.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。