github / github/copilot-cli

Terminal text remains italicized after running a command which outputs italic word.

Đang mở
#1,417 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:platform-windows area:terminal-rendering
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

I encountered a visual bug, that the terminal text style persists in italics after running a command which outputs italics word. I tested `ls` and `pwd`. `ls` caused this bug but `pwd` did not.

Image

You can ask copilot to answer you about \e[0m, to fix this visual bug. It's funny.

Image

I thought it's a bug, but I'm not sure if it was `starship`, `windows terminal`, `pwsh` or something else caused it. If you want more info of my environment, I'd love to provide it.

### Affected version

GitHub Copilot CLI 0.0.407.

### Steps to reproduce the behavior

1. Open PowerShell.
2. Ensure `ls` (or another command) produces output with italic formatting.
3. Launch copilot.
4. Run `ls` (change to command mode and input `ls`).
5. Observe that after the command output is displayed, the Copilot CLI input prompt and subsequent text remain italicized.

### Expected behavior

The input and output formats of copilot itself will not be affected by unexpected factors.

### Additional context

[process-1770871728467-13428.log](https://github.com/user-attachments/files/25251200/process-1770871728467-13428.log)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.