Skip to content
pubscout

term_glyph

1.2.2, released 2 years ago by tools.dart.dev

Provides useful Unicode glyphs and plain ASCII alternatives for command-line applications.

WASM-readyQuiet but busy
$ flutter pub add term_glyph
Source repository

What it does

This package contains getters for common Unicode characters and their ASCII equivalents. It supports a transparent ASCII mode switch for shells that cannot display Unicode.

AI-written summary of version 1.2.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a command-line application that needs terminal glyphs.
  • You need fallback ASCII representations for terminals lacking Unicode support.

Skip it when

  • You are building a graphical user interface (GUI) application.

Strengths

  • Ensures ASCII glyphs have the same character length to maintain terminal alignment.
  • Easy to toggle ASCII mode dynamically based on platform or environment.

Weaknesses

  • Limited usefulness outside of command-line applications.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:term_glyph/term_glyph.dart' as glyph;

String bulletedList(List<String> items) =>
    items.map((item) => "${glyph.bullet} $item").join("\n");

Works with

Packages commonly used together with term_glyph: ones it builds on, ones built on it, and its own family.