flutter / flutter/devtools

ANSI colors on DevTools log

オープン
#9,521 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug P3 screen: logging
主要言語
Dart
スター
1.7k
フォーク
404
平均マージ
6日 17時間
マージ済み PR(30日)
18

説明

This is my current log:

Image

This is how the log is displayed on DevTools:

Image

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。