commit | 882dabd62265de17763960198a0db3fed063b55a | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Mon Jan 30 14:14:10 2023 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Mon Jan 30 14:14:10 2023 +0100 |
tree | 4c9b727840e948d59f3b39214ffa2dbaff0d39e3 | |
parent | 4560ea96a6b8621b218a870a8e280908a8c3c721 [diff] |
Update TEST_MAPPING Test: atest Change-Id: Iccbf8f7a9bbe44486ef399987fdaf6b943e4cb5d
Rust library to getting the size of your terminal.
Works on Linux, MacOS, Windows, and illumos.
use terminal_size::{Width, Height, terminal_size}; let size = terminal_size(); if let Some((Width(w), Height(h))) = size { println!("Your terminal is {} cols wide and {} lines tall", w, h); } else { println!("Unable to get terminal size"); }
This crate requires a minimum rust version of 1.31.0 (2018-12-06)
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.