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

Open
#298 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
26
Forks
4
Avg merge
12h 11m
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/prisma-cli

All issues in prisma/prisma-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.