{"id":57196,"library":"console","title":"console","description":"A terminal and console abstraction for Rust.","status":"active","version":"0.16.3","language":"rust","source_language":null,"source_url":"https://github.com/console-rs/console","tags":["terminal","console","ansi","cli"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nconsole = \"0.16.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add console","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Term","correct":"use console::Term;"}],"quickstart":{"code":"use console::Term;\n\nfn main() {\n    let term = Term::stdout();\n    term.write_line(\"Hello, world!\").unwrap();\n    let size = term.size();\n    println!(\"Terminal size: {}x{}\", size.0, size.1);\n}","lang":"rust","description":"Interact with the terminal, get size, and write output."},"warnings":[{"fix":"Enable the 'ansi' feature in Cargo.toml: console = { version = \"0.16\", features = [\"ansi\"] }","message":"Some features (like colors) require the 'ansi' feature.","severity":"gotcha","affected_versions":">=0.15.0"}],"env_vars":null,"search_vec":"'abstract':6 'ansi':11 'cli':12 'consol':1,5,10 'rust':8 'termin':3,9","created_at":"2026-06-16T15:32:29.629317+00:00","updated_at":"2026-06-16T15:32:29.629317+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/console-rs/console","github":"https://github.com/console-rs/console","docs":"https://docs.rs/console/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli","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}}