Support dumb terminal mode (TERM=dumb)
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
I'd like to use Copilot CLI from within Acme (http://acme.cat-v.org/), the Plan 9-style editor, whose _win_ command provides a dumb terminal — no ANSI escape codes, no cursor movement sequences.
Currently the CLI renders a full TUI that produces garbled output in dumb terminals. It would be helpful if the CLI detected `TERM=dumb` and fell back to a simple line-oriented interaction mode — plain prompts, plain responses, no escape codes.
This is distinct from the existing -p prompt flag, which takes a single prompt and exits; a dumb terminal mode would support full multi-turn interactive sessions over a line-oriented interface.
This would also benefit other dumb-terminal environments (e.g. Emacs M-x shell, script pipes, etc.).
Expected behaviour: TERM=dumb copilot starts a plain line-oriented session.
Actual behaviour: The TUI renders escape codes producing garbled output, and input is unusable — the CLI expects cursor movement keys rather than accepting plain text input.
貢獻指南
研究方向
Start by tracing CLI startup into the TUI initialization and its input/output handling; the issue does not name specific files or tests. Verify TERM=dumb selects a multi-turn line-oriented session with plain prompts and responses, no escape codes, and usable plain-text input, while keeping the existing -p behavior distinct.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100