{"id":15679480,"url":"https://github.com/linusu/rust-ansi-escapes","last_synced_at":"2025-09-10T04:31:35.127Z","repository":{"id":48102489,"uuid":"72566210","full_name":"LinusU/rust-ansi-escapes","owner":"LinusU","description":"Ansi escape codes for Rust","archived":false,"fork":false,"pushed_at":"2024-06-23T20:31:17.000Z","size":18,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-02T00:32:24.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-01T18:49:55.000Z","updated_at":"2024-06-23T20:31:20.000Z","dependencies_parsed_at":"2024-10-20T15:48:24.052Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/rust-ansi-escapes","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"6ce084376b2d3cdd8b819c9cd8ce1d9effda9ac1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Frust-ansi-escapes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Frust-ansi-escapes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Frust-ansi-escapes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Frust-ansi-escapes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/rust-ansi-escapes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232498041,"owners_count":18532861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T16:31:50.042Z","updated_at":"2025-01-04T17:29:16.008Z","avatar_url":"https://github.com/LinusU.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ANSI Escapes\n\n[ANSI escape codes](http://www.termsys.demon.co.uk/vtansi.htm) for manipulating the terminal\n\n## Usage\n\nThis example program will print \"Hello, World!\", then replace it with \"Hello, Terminal!\" after one second.\n\n```rust\nextern crate ansi_escapes;\n\nuse std::thread::sleep;\nuse std::time::Duration;\n\nfn main() {\n    // Hides the cursor\n    print!(\"{}\", ansi_escapes::CursorHide);\n\n    // Prints first message\n    println!(\"Hello, World!\");\n\n    // Waits one seconds\n    sleep(Duration::from_secs(1));\n\n    // Erases the two lines\n    print!(\"{}\", ansi_escapes::EraseLines(2));\n\n    // Print final message\n    println!(\"Hello, Terminal!\");\n\n    // Shows the cursor\n    print!(\"{}\", ansi_escapes::CursorShow);\n}\n```\n\n## API\n\nSee [documentation](https://docs.rs/ansi-escapes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Frust-ansi-escapes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Frust-ansi-escapes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Frust-ansi-escapes/lists"}