Support dumb terminal mode (TERM=dumb)
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 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.
コントリビューションガイド
調査の方向性
まず、CLI の起動から TUI の初期化および入出力処理までを追跡します。この issue では具体的なファイルやテストは指定されていません。TERM=dumb によって、プレーンなプロンプトと応答を用いる複数ターンの行指向セッションが選択され、エスケープコードがなく、プレーンテキスト入力を使用できることを確認します。その際、既存の -p の動作は別のものとして維持します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100