{"id":58730,"library":"termsize","title":"Termsize","description":"Retrieves the terminal size (width and height) in a cross-platform manner.","status":"active","version":"0.1.9","language":"rust","source_language":null,"source_url":"https://github.com/softprops/termsize","tags":["terminal","size","tty","cross-platform"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntermsize = \"0.1.9\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add termsize","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"get","correct":"use termsize::get;"}],"quickstart":{"code":"use termsize;\n\nfn main() {\n    if let Some(size) = termsize::get() {\n        println!(\"Terminal size: {}x{}\", size.cols, size.rows);\n    } else {\n        eprintln!(\"Could not determine terminal size\");\n    }\n}","lang":"rust","description":"Get the current terminal dimensions"},"warnings":[],"env_vars":null,"search_vec":"'cross':12,19 'cross-platform':11,18 'height':8 'manner':14 'platform':13,20 'retriev':2 'size':5,16 'termin':4,15 'termsiz':1 'tti':17 'width':6","created_at":"2026-06-16T16:36:12.867625+00:00","updated_at":"2026-06-16T16:36:12.867625+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/softprops/termsize","github":"https://github.com/softprops/termsize","docs":"https://docs.rs/termsize/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}