#color #content #modifier #cell #table #input #dreg

dreg-core

Core functionality for Dreg

3 releases

0.2.2 Oct 18, 2024
0.2.1 Oct 17, 2024
0.2.0 Oct 14, 2024

#11 in #modifier


Used in 2 crates

MIT license

66KB
1.5K SLoC

Table of Contents


Crate Badge Docs Badge License Badge

Dreg

A simple text-based user interface library that will run on just about anything.

Features

Feature Terminal Desktop Web
Text colors (foreground & background)
Text modifiers (bold, italic, etc.) ✅* ✅*
Text layout
Keyboard input
Mouse input
Change the window title ✅*
Custom fonts
Change the font at runtime
Change the font scaling at runtime (zoom in)
Render multiple characters to a single cell

*The text modifier type is based on the standard terminal modifiers, and some platforms don't support some of these modifiers.

*Most terminals support changing the window title. You'd be hard pressed to find one that doesn't.

License

MIT

Dependencies

~2.5MB
~37K SLoC