{"id":22698306,"url":"https://github.com/phundrak/output-vt100-rs","last_synced_at":"2025-04-13T05:13:56.427Z","repository":{"id":57651015,"uuid":"170595312","full_name":"Phundrak/output-vt100-rs","owner":"Phundrak","description":"Activates ANSI escaped characters in PowerShell and CMD for your Rust code","archived":false,"fork":false,"pushed_at":"2022-02-12T23:08:49.000Z","size":32,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T05:13:45.354Z","etag":null,"topics":["ansi-colors","cmd","powershell","rust","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Phundrak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-13T23:28:38.000Z","updated_at":"2023-06-11T14:00:17.000Z","dependencies_parsed_at":"2022-09-05T02:50:59.360Z","dependency_job_id":null,"html_url":"https://github.com/Phundrak/output-vt100-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phundrak%2Foutput-vt100-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phundrak%2Foutput-vt100-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phundrak%2Foutput-vt100-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phundrak%2Foutput-vt100-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Phundrak","download_url":"https://codeload.github.com/Phundrak/output-vt100-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665746,"owners_count":21142123,"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":["ansi-colors","cmd","powershell","rust","windows"],"created_at":"2024-12-10T05:42:11.243Z","updated_at":"2025-04-13T05:13:56.408Z","avatar_url":"https://github.com/Phundrak.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/output_vt100.svg?style=flat)](https://crates.io/crates/output_vt100)\n[![Released API docs](https://docs.rs/output_vt100/badge.svg)](https://docs.rs/output_vt100)\n[![Downloads](https://img.shields.io/crates/d/output_vt100.svg?style=flat)](https://crates.io/crates/output_vt100)\n[![MIT Licensed](https://img.shields.io/crates/l/output_vt100.svg?style=flat)](https://crates.io/crates/output_vt100)\n[![AppVeyor CI](https://img.shields.io/appveyor/ci/Phundrak/output-vt100-rs.svg?style=flat)](https://ci.appveyor.com/project/Phundrak/output-vt100-rs)\n[![Build Status](https://drone.phundrak.com/api/badges/phundrak/output-vt100-rs/status.svg)](https://drone.phundrak.com/phundrak/output-vt100-rs)\n\n# Output-VT100\n\nThis simple crates allows developers to enable ANSI escape characters in Windows' console, be it CMD or PowerShell. Its usage is very simple, as shown below:\n\n```rust\nextern crate output_vt100;\n\nfn main() {\n    output_vt100::init();\n    println!(\"\\x1b[31mThis text is red!\\x1b[0m\");\n}\n```\n\nIf you wish to ensure the `output_vt100::init()` function is only ran once, you can use the crate [ctor](https://crates.io/crates/ctor). Be aware though it might not be suited for every use case, as explained on the crate’s presentation.\n\n```rust\nextern crate output_vt100;\nextern crate ctor;\nuse ctor::*;\n\n#[ctor]\nfn init_term() {\n    output_vt100::init();\n}\n\nfn main() {\n    println!(\"\\x1b[31mThis text is red!\\x1b[0m\");\n}\n```\n\nNot  that init  panics on  error, if  you do  not wish  to panic,  use\n`output_vt100::try_init` which returns a `Result\u003c(), InitError\u003e`\n\n# Acknowledgements\n\nA big thank you to [nbouteme](https://github.com/nbouteme) who helped me a lot during the development of this create.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphundrak%2Foutput-vt100-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphundrak%2Foutput-vt100-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphundrak%2Foutput-vt100-rs/lists"}