tag | 861c4d784e89d735401b44745988e7782e3ecbd2 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 01 16:52:03 2023 -0800 |
object | 53c0429b8bc5a1f6f676855537cd9f41c1451108 |
Platform Tools Release 33.0.4 (9550387)
commit | 53c0429b8bc5a1f6f676855537cd9f41c1451108 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:02:56 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:02:56 2023 +0000 |
tree | 4c9b727840e948d59f3b39214ffa2dbaff0d39e3 | |
parent | 8c5a1fe0f4c9c9e08739e7a2231a8923c308c3f3 [diff] | |
parent | 882dabd62265de17763960198a0db3fed063b55a [diff] |
Snap for 9550355 from 882dabd62265de17763960198a0db3fed063b55a to sdk-release Change-Id: I376e044a2d462616836d11770abe1e8483829eb0
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.