{"id":17054373,"url":"https://github.com/uduse/escape-sequence-color-header","last_synced_at":"2026-03-03T16:10:07.598Z","repository":{"id":27094958,"uuid":"30562149","full_name":"uduse/Escape-Sequence-Color-Header","owner":"uduse","description":"Color Your Output in Unix using C++","archived":false,"fork":false,"pushed_at":"2015-09-02T19:33:07.000Z","size":1053,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T23:42:39.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uduse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-09T22:28:52.000Z","updated_at":"2023-11-20T08:09:39.000Z","dependencies_parsed_at":"2022-09-02T04:51:04.934Z","dependency_job_id":null,"html_url":"https://github.com/uduse/Escape-Sequence-Color-Header","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uduse/Escape-Sequence-Color-Header","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uduse%2FEscape-Sequence-Color-Header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uduse%2FEscape-Sequence-Color-Header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uduse%2FEscape-Sequence-Color-Header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uduse%2FEscape-Sequence-Color-Header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uduse","download_url":"https://codeload.github.com/uduse/Escape-Sequence-Color-Header/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uduse%2FEscape-Sequence-Color-Header/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30051213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T15:26:47.567Z","status":"ssl_error","status_checked_at":"2026-03-03T15:26:17.132Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-10-14T10:14:41.169Z","updated_at":"2026-03-03T16:10:07.583Z","avatar_url":"https://github.com/uduse.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Escape-Sequence-Color-Header\nColor Your Output in Unix using C++!!\n\n![](https://github.com/Uduse/Escape-Sequence-Color-Header/blob/master/img.png?raw=true)\n\n## Principle\n\nhttp://ascii-table.com/ansi-escape-sequences.php\n\n## File:\n**Escape Sequence Color Header.h (see src folder)**\n \n## Date:\n2015/02/09 16:13 (~3h)\n \n## Author:\nUduse\n \n \n \n## Text Attribute Options:\n  BOLD, UNDERSCORE, BLINK, REVERSE_VIDEO, CONCEALED\n \n## Color Options:\n  BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE\n \n \n## Format:\n\nGeneral Format, include value you want in $variable$\n\n  COLOR_$Text Attribute$\n  COLOR_$Foreground Color$_$Background Color$\n  COLOR_$Text Attribute$_$Foreground Color$_$Background Color$\n  COLOR_NORMAL  // To set color to default\n\n\ne.g.\n  \n```cpp\nCOLOR_BOLD\nCOLOR_BLUE_NORMAL // Leave Text Attribute Blank if no TextAttribute appied\nCOLOR_UNDERSCORE_YELLOW_RED\nCOLOR_NORMAL\n```\n \n## Usage:\n \nJust use  to stream the color you want before outputting text and\nuse  again to set the color to normal after outputting text.\n\n  cout \u003c\u003c COLOR_BLUE_BLACK \u003c\u003c \"TEXT\" \u003c\u003c COLOR_NORMAL \u003c\u003c endl;\n  cout \u003c\u003c COLOR_BOLD_YELLOW_CYAN \u003c\u003c \"TEXT\" \u003c\u003c COLOR_NORMAL \u003c\u003c endl;\n\n## More Examples\n\nCreate a block of **Bold** text\n\n```cpp\ncout \u003c\u003c COLOR_BOLD;\ncout \u003c\u003c COLOR_RED_CYAN \u003c\u003c \"COLOR_RED_CYAN\";\ncout \u003c\u003c COLOR_WHITE_MAGENTA \u003c\u003c \"COLOR_WHITE_MAGENTA\";\ncout \u003c\u003c COLOR_CYAN_YELLOW \u003c\u003c \"COLOR_CYAN_YELLOW\";\ncout \u003c\u003c COLOR_NORMAL;\n```\n\n![](https://github.com/Uduse/Escape-Sequence-Color-Header/blob/master/img3.png?raw=true)\n\n\u003cbr\u003e\n\nCreate a block of **Red** text\n\n```cpp\ncout \u003c\u003c COLOR_RED_NORMAL;\ncout \u003c\u003c COLOR_BOLD \u003c\u003c \"COLOR_BOLD\";\ncout \u003c\u003c COLOR_UNDERSCORE \u003c\u003c \"COLOR_UNDERSCORE\";\ncout \u003c\u003c COLOR_NORMAL;\n```\n\n![](https://github.com/Uduse/Escape-Sequence-Color-Header/blob/master/img2.jpg?raw=true)\n\n## License\nCopyright (c) 2015, Uduse - Aedi Wang, All rights reserved.\nThis project is licensed under The BSD 2-Clause License, see LICENSE.md for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuduse%2Fescape-sequence-color-header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuduse%2Fescape-sequence-color-header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuduse%2Fescape-sequence-color-header/lists"}