3 stable releases

2.3.0 Jul 19, 2023
2.2.0 Apr 29, 2022
1.0.0 Jul 5, 2021

#2881 in Command line utilities

Download history 11/week @ 2024-02-15 33/week @ 2024-02-22 22/week @ 2024-02-29 6/week @ 2024-03-07 16/week @ 2024-03-14 19/week @ 2024-03-21 19/week @ 2024-03-28

60 downloads per month
Used in 3 crates (2 directly)

GPL-3.0-or-later

145KB
4K SLoC

GIRT Display Crate

This crate is part of the larger Git Interactive Rebase Tool. The version is pinned to the root project, and this crate does not follow SemVer.


lib.rs:

Git Interactive Rebase Tool - Display Module

Description

This module is used to handle working with the terminal display.

use config::Theme;
use display::{CrossTerm, Display, DisplayColor};
let theme = Theme::new();
let tui = CrossTerm::new();
let mut display = Display::new(tui, &theme);

display.start();
display.clear();
display.draw_str("Hello world!");
display.color(DisplayColor::IndicatorColor, false);
display.set_style(false, true, false);
display.draw_str("Hello colorful, underlined world!");
display.refresh();
display.end();

Test Utilities

To facilitate testing the usages of this crate, a set of testing utilities are provided. Since these utilities are not tested, and often are optimized for developer experience than performance should only be used in test code.

Dependencies

~15–27MB
~458K SLoC