A rust crate for rendering large text to the terminal using font8x8 and ratatui.

Overview

tui-big-text

Crates.io License Docs.rs Dependency Status Codecov Discord

tui-big-text is a rust crate that renders large pixel text as a ratatui widget using the glyphs from the font8x8 crate.

Installation

cargo add ratatui tui-big-text

Example

fn render<B: Backend>(frame: &mut Frame<B>) -> Result<()> {
    let big_text = BigTextBuilder::default()
        .style(Style::new().blue())
        .lines(vec![
            "Hello".red().into(),
            "World".white().into(),
            "~~~~~".into(),
        ])
        .build()?;
    frame.render_widget(big_text, frame.size());
    Ok(())
}

Example Made with VHS

License

Copyright (c) 2023 Josh McKinney

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Comments
  • chore: release v0.1.4

    chore: release v0.1.4

    πŸ€– New release

    • tui-big-text: 0.1.3 -> 0.1.4 (βœ“ API compatible changes)
    Changelog

    0.1.4 - 2023-09-05

    Miscellaneous Tasks

    • id Undo release-plz fetch-depth change
    • id Update changelog


    This PR was generated with release-plz.

    opened by github-actions[bot] 0
  • chore: release v0.1.3

    chore: release v0.1.3

    πŸ€– New release

    • tui-big-text: 0.1.2 -> 0.1.3 (βœ“ API compatible changes)
    Changelog

    0.1.3 - 2023-09-05

    Miscellaneous Tasks

    • id Configure release-plz fetch depth


    This PR was generated with release-plz.

    opened by github-actions[bot] 0
  • docs: tweak readme, licenses, contributing

    docs: tweak readme, licenses, contributing

    • fix: add doc test imports
    • test: fix coverage for expected buffers in codecov
    • chore: add bacon config
    • refactor: render fn
    • docs: tweak readme, licenses, contributing
    opened by joshka 0
  • chore: release v0.1.3

    chore: release v0.1.3

    πŸ€– New release

    • tui-big-text: 0.1.2 -> 0.1.3 (βœ“ API compatible changes)
    Changelog

    0.1.3 - 2023-09-05

    Bug Fixes

    • id Add doc test imports (#8)

    Documentation

    • id Tweak readme, licenses, contributing (#10)

    Miscellaneous Tasks

    • id Configure git-cliff (#11)
    • id Add bacon config
    • id Add ci.yml (#6)

    Refactor

    • id Render fn

    Testing

    • id Fix coverage for expected buffers in codecov


    This PR was generated with release-plz.

    opened by github-actions[bot] 0
  • chore: release v0.1.2

    chore: release v0.1.2

    πŸ€– New release

    • tui-big-text: 0.1.1 -> 0.1.2 (βœ“ API compatible changes)
    Changelog

    0.1.2 - 2023-09-05

    Other

    • use cargo-rdme to sync lib.rs to README.md (#4)


    This PR was generated with release-plz.

    opened by github-actions[bot] 0
  • chore: release v0.1.1

    chore: release v0.1.1

    πŸ€– New release

    • tui-big-text: 0.1.0 -> 0.1.1 (βœ“ API compatible changes)
    Changelog

    0.1.1 - 2023-09-05

    Fixed

    • render correctly when not at the origin

    Other

    • add stopwatch example
    • readme wrapping


    This PR was generated with release-plz.

    opened by github-actions[bot] 0
Releases(v0.1.4)
Owner
Josh McKinney
Josh McKinney
Simple yet powerful multi-line text editor widget for tui-rs and ratatui

tui-textarea tui-textarea is a simple yet powerful text editor widget like <textarea> in HTML for tui-rs and ratatui. Multi-line text editor can be ea

Linda_pp 126 Jul 12, 2023
A simple library fot creating file explorer for the ratatui crate.

ratatui-explorer ratatui-explorer is a simple library for creating file explorers for ratatui. Features: File explorer functionality. Input handling (

null 5 Feb 29, 2024
A TUI for exploring crates.io using Ratatui

crates-tui crates-tui is a simple terminal user interface explorer for crates.io based on Ratatui. crates-tui.mov It supports features like: copy carg

Ratatui 28 Mar 11, 2024
Attempt to summarize text from `stdin`, using a large language model (locally and offline), to `stdout`

summarize-cli Attempt to summarize text from stdin, using a large language model (locally and offline), to stdout. cargo build --release target/releas

null 4 Aug 23, 2023
Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!

Oatmeal Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors! Overview In

Dustin Blackman 88 Dec 4, 2023
An implementation of Piet's text interface using cosmic-text

piet-cosmic-text Implements piet's Text interface using the cosmic-text crate. License piet-cosmic-text is free software: you can redistribute it and/

John Nunley 7 Mar 12, 2023
A minimal browser with a super simple rendering engine for HTML and CSS, using Rust.

minimal-browser A minimal browser with a super simple rendering engine for HTML and CSS, using Rust. Credit: https://github.com/mbrubeck and https://l

Federico Baldini 3 Jan 15, 2023
πŸ¦€Rust + Large Language Models - Make AI Services Freely and Easily. Inspired by LangChain

llmchain: Modern Data Transformations with LLM ?? + Large Language Models, inspired by LangChain. Features Models: LLMs & Chat Models & Embedding Mode

Shafish Labs 63 Jun 22, 2023
create and test the style and formatting of text in your terminal applications

description: create and test the style and formatting of text in your terminal applications docs: https://docs.rs/termstyle termstyle is a library tha

Rett Berg 18 Jul 3, 2021
Codemod - Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention

Codemod - Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.

Meta Archive 4k Dec 29, 2022
Cloud Native Buildpack that builds an OCI image with Ollama and a large language model.

Ollama Cloud Native Buildpack This buildpack builds an OCI image with Ollama and a large language model. Configure your model by an Ollama Modelfile o

Manuel Fuchs 3 Mar 19, 2024
auto-rust is an experimental project that aims to automatically generate Rust code with LLM (Large Language Models) during compilation, utilizing procedural macros.

Auto Rust auto-rust is an experimental project that aims to automatically generate Rust code with LLM (Large Language Models) during compilation, util

Minsky 6 May 14, 2023
Slack chat bot written in Rust that allows the user to interact with a large language model.

A Slack chat bot written in Rust that allows the user to interact with a large language model. Creating an App on Slack, first steps Go to https://api

Marco Inacio 13 Nov 2, 2023
A library that creates a terminal-like window with feature-packed drawing of text and easy input handling. MIRROR.

BearLibTerminal provides a pseudoterminal window with a grid of character cells and a simple yet powerful API for flexible textual output and uncompli

Tommy Ettinger 43 Oct 31, 2022
Simple macros to write colored and formatted text to a terminal. Based on `termcolor`, thus also cross-platform.

Bunt: simple macro-based terminal colors and styles bunt offers macros to easily print colored and formatted text to a terminal. It is just a convenie

Lukas Kalbertodt 202 Dec 22, 2022
A tiny library and application for animating text in the terminal.

?? snailshell A tiny library and application for animating text in the terminal. ?? It's so easy to add some flair to your text RPGs or console progra

null 45 Mar 5, 2023
An ultra-fast CLI app that fixes JSON files in large codebase or folders

minosse An ultra fast CLI app that fixes json files in large codebase or folders USAGE: minosse [OPTIONS] <input-dir> FLAGS: -h, --help Prints

Antonino Bertulla 5 Oct 17, 2022
Framework for large distributed pipelines

Rain Rain is an open-source distributed computational framework for processing of large-scale task-based pipelines. Rain aims to lower the entry barri

Substantic 705 Dec 27, 2022
Tool to allow parsing large JSON files without laoding into memory

Tool to allow parsing large JSON files without laoding into memory. Developed in Rust with adapters in other programming langauges for easy adoption

Salaah Amin 7 Jul 11, 2023