Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Use "regular" Unicode chars for status display

Aperta
#119 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start with the table-rendering path used by the kup list command and reproduce the output in a terminal or when pasted into Slack. Done means status uses the proposed broadly supported Unicode symbols and the Status column precedes Installed version, with the resulting layout verified within the intended terminal width.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The current status display looks like this when cut and pasted from my terminal:

c$ kup list
┌──────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────┐
│ Package name (alias) │ Installed version                                                                                              │ Status                     │
├──────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────┤
│ k                    │ f73063d8260ca1a40c9e850db60f3a9a1dcb691f?narHash=sha256-pFOw/vJ6g9bM8PzfiaZtSc89Vohmcu/rCkxZiQAeAEo%3D         │ 🟠 newer version available │
│ kup                  │ ee27b243e7944099d1868b8ccb21d2a74b016e30?narHash=sha256-BKmc7jyM6xJ%2BfcCKO7X%2Bw57s5n%2B3fpC6%2BK//NtcmqDw%3D │ 🟢 installed               │
│ kavm                 │                                                                                                                │ 🔵 available               │
│ kevm                 │                                                                                                                │ 🔵 available               │
│ kplutus              │                                                                                                                │ 🔵 available               │
│ kmir                 │                                                                                                                │ 🔵 available               │
│ kontrol              │                                                                                                                │ 🔵 available               │
│ kmxwasm              │                                                                                                                │ 🔵 available               │
└──────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────┘

However, in the terminal itself (urxvt), which is configured to use the Inconsolata font, it looks like this:
image

And here's what a similar display looks like when pasted into Slack:
image

We see these drastic differences because the Unicode characters you're using, \u1F7E0, \u1F7E2, \u1F535, etc. are fairly new: a fair number of fonts don't yet support these, and some systems (such as Slack) don't support these because of the risk they won't be displayed correctly. This is made all the worse only colour systems can support these particular characters properly.

I suggest you change these to older, more standard characters that will display correctly in far more cases, including monochrome displays. For example:

▲ newer version available   (\u25B2)
● installed                 (\u25CF)
○ available                 (\u25CB)

Note that the "icons" will still get the correct colour so long as you send the terminal colour code you're using for the text before you send the "icon" character.

While we're at it, it would also be nice to swap the positions of the "Status" and "Installed version" columns so that those of us cutting to terminal width (e.g., when piping into less -S) can see the more important Status column within 80 columns or whatever we're using.

Lingua principale
Python
Stelle
10
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di runtimeverification/kup

Tutte le issue di runtimeverification/kup

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.