| Crates.io | tuxtui-core |
| lib.rs | tuxtui-core |
| version | 0.1.0 |
| created_at | 2025-10-17 21:38:49.564465+00 |
| updated_at | 2025-10-17 21:38:49.564465+00 |
| description | Core types and traits for tuxtui TUI library |
| homepage | https://github.com/TIVerse/tuxtui |
| repository | https://github.com/TIVerse/tuxtui |
| max_upload_size | |
| id | 1888469 |
| size | 172,778 |
Core types and traits for the tuxtui Terminal UI library.
tuxtui-core provides the foundational building blocks for terminal user interfaces:
std (default): Enable standard library supportlayout-cache: Enable LRU caching for layout calculationsserde: Enable serialization/deserializationpalette: Enable advanced color manipulation with HSL/HSLuvportable-atomic: Use portable atomics for no-std compatibilityanstyle: Enable anstyle conversionsunderline-color: Enable colored underlinesscrolling-regions: Enable terminal scrolling region supportuse tuxtui_core::{buffer::Buffer, geometry::Rect, style::{Color, Style}};
let mut buffer = Buffer::empty(Rect::new(0, 0, 10, 5));
let style = Style::default().fg(Color::Blue);
buffer.set_string(0, 0, "Hello", style);
Widget libraries can depend on tuxtui-core without pulling in heavy backend dependencies:
[dependencies]
tuxtui-core = { version = "0.1", default-features = false }
MIT - See LICENSE for details.
Copyright (c) 2024 Eshan Roy eshanized@proton.me
Tonmoy Infrastructure & Vision