{"id":25213161,"url":"https://github.com/villy-p/cppconsole","last_synced_at":"2026-02-27T15:44:19.960Z","repository":{"id":275960769,"uuid":"828735413","full_name":"Villy-P/CPPConsole","owner":"Villy-P","description":"A header only C++ library for easier logging to the console that includes features like coloring text, printing data structures, cursor manipulation, and more","archived":false,"fork":false,"pushed_at":"2025-02-05T13:40:20.000Z","size":118,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T12:03:55.647Z","etag":null,"topics":["clear","color","console","cpp","cpp-console","cursor-manipulation","header-only","header-only-library","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/Villy-P.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","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":"2024-07-15T02:52:21.000Z","updated_at":"2025-03-06T08:22:00.000Z","dependencies_parsed_at":"2025-02-05T14:44:39.735Z","dependency_job_id":null,"html_url":"https://github.com/Villy-P/CPPConsole","commit_stats":null,"previous_names":["villy-p/cppconsole"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Villy-P/CPPConsole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FCPPConsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FCPPConsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FCPPConsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FCPPConsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Villy-P","download_url":"https://codeload.github.com/Villy-P/CPPConsole/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FCPPConsole/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267502302,"owners_count":24098112,"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-07-28T02:00:09.689Z","response_time":68,"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":["clear","color","console","cpp","cpp-console","cursor-manipulation","header-only","header-only-library","terminal"],"created_at":"2025-02-10T15:19:08.377Z","updated_at":"2026-02-27T15:44:14.934Z","avatar_url":"https://github.com/Villy-P.png","language":"C++","readme":"# CPPConsole\n\nCPPConsole is a header-only library for `C++` projects that adds features to the console to make logging easier, like getting dimensions, coloring text, etc.\n\n## Using CPPConsole\n\nTo use CPPConsole in your project, copy all the file located in the `include/` directory into your own personal `include/` folder.\n\nAfter that, you can add `#include \"cppconsole.hpp\"` to your file to include all CPPConsole functions, or include each file individually.\n\n## Features\n\n* ANSI Escape Code support\n* Cross-platform support for Windows and Linux for most functions\n* Colorizing text using RGB values\n* Moving the Console cursor\n* Getting Console Dimensions\n* Clearing parts of the Console\n* Manipulating text graphics, like making text bold/italic\n* Printing data structures, like vectors and maps\n\n## Examples\n\n``` cpp\nstd::vector\u003cstd::string\u003e vec = {\"a\", \"b\", \"c\", \"d\", \"e\"};\nvec[0] = console::colorize(vec[0], 255, 255, 0);\nconsole::println(vec);\n```\n\n``` cpp\nconsole::set({console::Graphics::BOLD, console::Graphics::ITALIC});\nconsole::Dimensions dim = console::getDimensions();\nfor (int i = 0; i \u003c 256; ++i) {\n    if (i % (dim.width / 4) == 0)\n        console::println();\n    console::print(console::colorize(std::string(3 - std::to_string(i).length(), ' ') + std::to_string(i), i) + \" \");\n}\n```\n\n## Screenshots\n\n![Example 1](./assets/example1.png)\n![Example 2](./assets/example2.png)\n\n## Usage\n\n`console::print` and `console::println` are the main function that are used for printing. These work with any data structure, from primitives to vectors and maps.\n\n`console::printAll` and `console::printlnAll` take an infinite amount of arguments, seperating them by spaces\n\n`console::colorize` takes a string and then a color, changing the color of the text\n\n`console::set` takes a list of graphics modes, and sets them all (like BOLD and ITALIC)\n\n`console::clearGraphics` clears all previous graphics modes.\n\nMore function can be found throughout the files.\n\n## Contributing\n\nIf you'd like to contribute to CPPConsole, or would like to report an issue, please read the [Contributing Guidelines](./.github/CONTRIBUTING.md)\n\n## License\n\nCPPConsole is licensed under the [MIT License](./LICENSE)\n\n## Changelog\n\nCPPConsole's changlog, which includes previous changes and upcoming changes, can be found in [CHANGELOG.md](./CHANGELOG.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvilly-p%2Fcppconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvilly-p%2Fcppconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvilly-p%2Fcppconsole/lists"}