{"id":16214818,"url":"https://github.com/lecrapouille/terminalcolor","last_synced_at":"2026-04-29T17:03:05.651Z","repository":{"id":115857417,"uuid":"261303512","full_name":"Lecrapouille/TerminalColor","owner":"Lecrapouille","description":"[Lib][Functional][Stable] A minimal C++11 header-only file for adding colors to your std::cout functions","archived":false,"fork":false,"pushed_at":"2020-05-08T19:25:17.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T22:34:35.157Z","etag":null,"topics":["color","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lecrapouille.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-05-04T21:50:53.000Z","updated_at":"2023-04-08T10:55:13.000Z","dependencies_parsed_at":"2023-12-06T07:45:09.554Z","dependency_job_id":null,"html_url":"https://github.com/Lecrapouille/TerminalColor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lecrapouille/TerminalColor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FTerminalColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FTerminalColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FTerminalColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FTerminalColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lecrapouille","download_url":"https://codeload.github.com/Lecrapouille/TerminalColor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FTerminalColor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["color","cpp","terminal"],"created_at":"2024-10-10T11:13:06.550Z","updated_at":"2026-04-29T17:03:05.636Z","avatar_url":"https://github.com/Lecrapouille.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TerminalColor\n\nA single C++11 header-only file for adding colors to your std::cout function.\nThis project has been inspired by https://github.com/agauniyal/rang and https://github.com/agauniyal/rang/issues/103\n\n## Example\n\n```\n#define WARNING_COLOR   termcolor::color(termcolor::style::bold, termcolor::fg::red)\n#define ERROR_COLOR     termcolor::color(termcolor::style::bold, termcolor::fg::green)\n#define DEFAULT_COLOR   termcolor::color()\n\ntermcolor::enable();\nstd::cout \u003c\u003c WARNING_COLOR \u003c\u003c \"- Warning\\n\"\n          \u003c\u003c ERROR_COLOR \u003c\u003c \"+ Error\"\n          \u003c\u003c DEFAULT_COLOR \u003c\u003c std::endl;\n\ntermcolor::disable();\nstd::cout \u003c\u003c WARNING_COLOR \u003c\u003c \"- Warning\\n\"\n          \u003c\u003c ERROR_COLOR \u003c\u003c \"+ Error\"\n          \u003c\u003c DEFAULT_COLOR \u003c\u003c std::endl;\n```\n\nWill produce something like this in your console:\n\n```diff\n- Warning\n+ Error\n```\n```\n- Warning\n+ Error\n```\n\nIf you want to ignore color requests call `termcolor::disable();` To enable color back: `termcolor::enable();`. For more examples see the [unit-test file](tests/TerminalColorTests.cpp).\n\n## Project using this library\n\nhttps://github.com/Lecrapouille/SimForth\n\n![alt tag](https://github.com/Lecrapouille/SimForth/blob/master/doc/img/Dictionary.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flecrapouille%2Fterminalcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flecrapouille%2Fterminalcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flecrapouille%2Fterminalcolor/lists"}