diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-16 18:08:47 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-16 18:08:47 +0100 |
commit | 4b63c7be4207bf2ff7884189a388e83633b20b26 (patch) | |
tree | 4b4283c6235e2e7af99ed3e1c1eee8b30a4ce00c /crates/termsize/README.md | |
parent | refactor(crates/fmt): Init forked `uu_fmt` library (diff) | |
download | yt-4b63c7be4207bf2ff7884189a388e83633b20b26.zip |
fix(crates/termsize): Remove all of `clippy`'s warnings
Diffstat (limited to 'crates/termsize/README.md')
-rw-r--r-- | crates/termsize/README.md | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/crates/termsize/README.md b/crates/termsize/README.md index 27b7869..305669b 100644 --- a/crates/termsize/README.md +++ b/crates/termsize/README.md @@ -17,15 +17,17 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. > because terminal size matters -Termsize is a rust crate providing a multi-platform interface for resolving -your terminal's current size in rows and columns. On most unix systems, this is similar invoking the [stty(1)](http://man7.org/linux/man-pages/man1/stty.1.html) program, requesting the terminal size. - +Termsize is a rust crate providing a multi-platform interface for resolving your +terminal's current size in rows and columns. On most unix systems, this is +similar invoking the [stty(1)](http://man7.org/linux/man-pages/man1/stty.1.html) +program, requesting the terminal size. ## [Documentation](https://softprops.github.com/termsize) ## install -run `cargo add termsize` in your terminal or add the following to your `Cargo.toml` file +run `cargo add termsize` in your terminal or add the following to your +`Cargo.toml` file ```toml [dependencies] @@ -35,8 +37,8 @@ termsize = "0.1" ## usage Termize provides one function, `get`, which returns a `termsize::Size` struct -exposing two fields: `rows` and `cols` representing the number of rows and columns -a a terminal's stdout supports. +exposing two fields: `rows` and `cols` representing the number of rows and +columns a a terminal's stdout supports. ```rust pub fn main() { @@ -46,4 +48,4 @@ pub fn main() { } ``` -Doug Tangren (softprops) 2015-2024 \ No newline at end of file +Doug Tangren (softprops) 2015-2024 |