irox-tools 0.11.1

Stuff that should have been in the Rust STL, but aren't
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT
// Copyright 2025 IROX Contributors
//

use irox_tools::ansi_colors::{get_termcap, get_textarea_size_pixels};
use irox_tools::hex::HexDump;

pub fn main() -> Result<(), std::io::Error> {
    let res = get_termcap("TN;")?;
    (&mut res.as_slice()).hexdump();
    let res = get_textarea_size_pixels()?;
    (&mut res.as_slice()).hexdump();
    Ok(())
}