Skip to content

friscorose/textual-EnGlyph

Repository files navigation

Textual-EnGlyph

A large font rendering widget for the Textual platform.

Requirements

For this to look good you will need a terminal emulator that supports Unicode and a font that has glyphs for the Symbols for Legacy Computing block defined by Unicode version 16.0.

Known terminals

  • iTerm2 (OS X)
  • xfce4-Terminal (Linux)
  • Terminal (Windows)
  • ...and many more.

Known terminal fonts

Howto

This widget library is available as a python PyPi library.

This HowTo recommends uv to manage your python environment, see https://docs.astral.sh/uv/guides/ for using uv.

Run the default text use case... as a module in your textual python app. Save the following simple example as test.py

from textual.app import App, ComposeResult
from textual_englyph import EnGlyphText

class Test(App):
    '''Test CSS and console markup styling the basic englyph text use case'''
    DEFAULT_CSS = """
    EnGlyphText {
        color: green;
        text-style: underline;
        }
    """
    def compose(self) -> ComposeResult:
        yield EnGlyphText("Hello [blue]Textual!")

if __name__ == "__main__":
    app = Test()
    app.run()

and run it (use ctrl-q to exit)

uv run --with textual --with textual_englyph test.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages