flutter / flutter/devtools

ANSI colors on DevTools log

Abierto
#9,521 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug P3 screen: logging
Lenguaje dominante
Dart
Estrellas
1.7k
Forks
404
Merge medio
6 d 17 h
PR fusionados (30 d)
18

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.