ANSI colors on DevTools log
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 404
- 平均合并
- 6 天 17 小时
- 30 天内合并 PR
- 18
描述
This is my current log:
This is how the log is displayed on DevTools:
1) Notice that ANSI colors are (almost) correct rendered on the left panel, but:
a) It always assume black as the foreground color (so black background is invisible)
b) It has a larger font that the normal
2) The details panel doesn't support ANSI colors at all.
It would be nice if
a) All panels supports ANSI colors
or
b) All panels remove all kind of escape codes related to ANSI (so the log would show only plain text, filtering all `\x1B[.......m`)
___
**DevTools version**: 2.51.1
**IDE**: VSCode
**Connected Device**:
CPU / OS: x64 (64 bit) ios
Connected app type: Flutter native (debug build)
Dart Version: 3.10.0
Flutter Version: 3.38.1 / stable
Framework / Engine: b45fa18946 / b5990e5ccc
贡献指南
调研方向
首先,在 DevTools 日志中复现带 ANSI 颜色的输出,并将主日志面板与其详细信息面板进行比较。跟踪日志渲染入口点,并验证 ANSI 序列是否在所有面板中保持一致地渲染,或者在所有地方都被移除,包括前景色和字体处理。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, flutter
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100