Documentation
Repository
crates.io
Installation
Add the following line to your Cargo.toml
file:
hanbun = "0.4.1"
Examples
Here is an example that makes use of common features such as creating a buffer, setting colored half blocks, printing text and finally drawing the buffer to the screen.
use ;
The result:
Results may vary depending on the terminal.
Make sure to check out the other examples too! You can run examples like the calculator right now:
git clone https://github.com/r00ster91/hanbun.git
cd hanbun
cargo run --example calculator
Footnotes
This is my first Rust library to make some crate development experience. As of now, the library is useable but if you do repeated drawing you might experience some tearing. On the bright side you get that nostalgic feeling of old displays.