The engine prints Unicode status and tree characters even on terminals that are not UTF-8

Abierto
#298 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli

Línea de trabajo

Start in packages/cli-engine/src/execution/rendering.ts, where STATUS_SYMBOL and the tree glyphs are defined, then read the ORM's glyph-mode.ts for the existing Unicode-versus-ASCII approach. Trace how terminal capabilities are available to the renderer and add coverage for non-UTF-8 output if the relevant tests are nearby. Done means the engine selects safe output for terminals that cannot display Unicode while preserving the existing Unicode rendering elsewhere.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The engine hard-codes ✔ ✘ ⚠ ℹ and │ ├─ └─ (STATUS_SYMBOL and the tree glyphs in packages/cli-engine/src/execution/rendering.ts). It never checks whether the terminal can show them. The ORM had a glyph-mode.ts that chose between Unicode and ASCII; the engine did not adopt it. No user has reported garbled output yet.

Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L245

🤖 Generated with Claude Code

Lenguaje dominante
TypeScript
Estrellas
25
Forks
4
Merge medio
18 h 22 min
PR fusionados (30 d)
34

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de prisma/prisma-cli

Todos los issues de prisma/prisma-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.