{"id":27204455,"url":"https://github.com/tomsik68/ansi_colors","last_synced_at":"2025-08-31T21:43:43.810Z","repository":{"id":143290261,"uuid":"233242029","full_name":"tomsik68/ansi_colors","owner":"tomsik68","description":"Single-header macro-based library for using terminal color codes in C/C++","archived":false,"fork":false,"pushed_at":"2020-01-11T14:18:19.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T22:58:26.874Z","etag":null,"topics":["c","colors","colors-codes","console","cpp","terminal"],"latest_commit_sha":null,"homepage":"","language":"C","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/tomsik68.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-11T14:10:54.000Z","updated_at":"2024-12-03T10:23:37.000Z","dependencies_parsed_at":"2023-05-11T05:00:34.452Z","dependency_job_id":null,"html_url":"https://github.com/tomsik68/ansi_colors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomsik68/ansi_colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomsik68%2Fansi_colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomsik68%2Fansi_colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomsik68%2Fansi_colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomsik68%2Fansi_colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomsik68","download_url":"https://codeload.github.com/tomsik68/ansi_colors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomsik68%2Fansi_colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273046461,"owners_count":25036179,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","colors","colors-codes","console","cpp","terminal"],"created_at":"2025-04-09T22:58:25.484Z","updated_at":"2025-08-31T21:43:43.801Z","avatar_url":"https://github.com/tomsik68.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansi_colors\nSingle-header macro-based library for terminal color codes\n\n## Screenshot\n\nThis is a showcase of all supported formatting at the moment (the colors may look different depending on your terminal configuration):\n\n![](https://i.imgur.com/2h4bHRP.png)\n\n## Usage\n\nCopy the header file somewhere in your project. Then, you can include it whenever needed.\n\n```c\n#include \"ansi_colors.h\"\n```\n\nThe color codes can then be used with `puts`, `printf` or really any I/O function that outputs to an ANSI terminal. For example:\n\n```c\n#include \u003cstdio.h\u003e\n#include \"ansi_colors.h\"\n\nint main(int argc, char** argv) {\n  printf(\"Hello world! \" BOLD \" This text is written in bold!\" RESET \" this is not!\" );\n  return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomsik68%2Fansi_colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomsik68%2Fansi_colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomsik68%2Fansi_colors/lists"}