{"id":23432933,"url":"https://github.com/heimskr/formicine","last_synced_at":"2025-04-09T15:35:41.848Z","repository":{"id":67692012,"uuid":"187425516","full_name":"heimskr/formicine","owner":"heimskr","description":"A C++ library for doing things with ANSI.","archived":false,"fork":false,"pushed_at":"2021-08-02T20:04:05.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T09:31:33.629Z","etag":null,"topics":["ansi","ansi-escape-codes","library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heimskr.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":"2019-05-19T02:32:30.000Z","updated_at":"2022-05-07T14:20:43.000Z","dependencies_parsed_at":"2023-09-16T01:38:37.562Z","dependency_job_id":null,"html_url":"https://github.com/heimskr/formicine","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/heimskr%2Fformicine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimskr%2Fformicine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimskr%2Fformicine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimskr%2Fformicine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimskr","download_url":"https://codeload.github.com/heimskr/formicine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248058618,"owners_count":21040784,"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","ansi-escape-codes","library"],"created_at":"2024-12-23T10:56:37.857Z","updated_at":"2025-04-09T15:35:41.838Z","avatar_url":"https://github.com/heimskr.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Formicine\nA simple C++ library that wraps ostreams for use with ANSI escapes.\n\n### Example\n##### Code\n```cpp\n#include \u003ciostream\u003e\n#include \"ansi.h\"\n\nint main(int, char **) {\n    ansi::ansistream as(std::cout, std::cerr);\n\n    as \u003c\u003c \"Normal text\\n\";\n    as \u003c\u003c ansi::bold \u003c\u003c \"Bold text\" \u003c\u003c ansi::reset \u003c\u003c \"\\n\";\n    as \u003c\u003c fg(ansi::green) \u003c\u003c \"Green text\" \u003c\u003c ansi::reset \u003c\u003c \"\\n\";\n    as \u003c\u003c ansi::underline \u003c\u003c \"Underlined text,\"\n       \u003c\u003c ansi::italic \u003c\u003c \" italic+underlined text\"\n       \u003e\u003e ansi::underline \u003c\u003c \" and just italic text.\"\n       \u003c\u003c ansi::reset \u003c\u003c \"\\n\";\n}\n```\n\n##### Output\n\u003e Normal text  \n**Bold text**  \n\u003cspan style=\"color:green\"\u003eGreen text\u003c/span\u003e  \n\u003cspan style=\"text-decoration:underline\"\u003eUnderlined text, \u003cspan style=\"font-style:italic\"\u003eitalic+underlined text\u003c/span\u003e\u003c/span\u003e \u003cspan style=\"font-style:italic\"\u003eand just italic text.\u003c/span\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimskr%2Fformicine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimskr%2Fformicine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimskr%2Fformicine/lists"}