ueberzug 0.1.0

Unofficial Ueberzug bindings to use in rust projects
Documentation
  • Coverage
  • 28.57%
    8 out of 28 items documented2 out of 8 items with examples
  • Size
  • Source code size: 10.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 448.27 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Adit-Chauhan/Ueberzug-rs
    6 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Adit-Chauhan

Ueberzug-rs

Ueberzug-rs This project provides simple bindings to that ueberzug to draw images in the terminal.

This code was inspired from the termusic to convert their specilized approach to a more general one.

Note: This project needs ueberzug to be installed and be in the system path.

Examples

this example will draw image for 2 seconds, erase the image and wait 1 second before exiting the program.

use std::thread::sleep;
use std::time::Duration;
use ueberzug::{UeConf,Scalers};

let a = ueberzug::Ueberzug::new();
// Draw image
// See UeConf for more details
a.draw(&UeConf {
    identifier: "crab",
    path: "ferris.png",
    x: 10,
    y: 2,
    width: Some(10),
    height: Some(10),
    scaler: Some(Scalers::FitContain),
    ..Default::default()
});
sleep(Duration::from_secs(2));
// Only identifier needed to clear image
a.clear("crab");
sleep(Duration::from_secs(1));