minimo 0.5.42

terminal ui library combining alot of things from here and there and making it slightly easier to play with
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::sync::Mutex;

use crate::lazy;

lazy! {
    static ref MAX_TERMINAL_WIDTH : Mutex<usize> = Mutex::new(0);
}

pub fn get_max_width() -> usize {
    *MAX_TERMINAL_WIDTH.lock().unwrap()
}

pub fn set_max_width(width: usize) {
    *MAX_TERMINAL_WIDTH.lock().unwrap() = width;
}