{"id":18494312,"url":"https://github.com/ttldtor/console","last_synced_at":"2025-09-04T02:33:42.399Z","repository":{"id":196787156,"uuid":"697224575","full_name":"ttldtor/Console","owner":"ttldtor","description":"Cross-platform library of utilities for working with the console.","archived":false,"fork":false,"pushed_at":"2023-09-27T11:16:04.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"default","last_synced_at":"2024-12-25T16:41:03.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ttldtor.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}},"created_at":"2023-09-27T09:54:14.000Z","updated_at":"2023-09-27T10:56:22.000Z","dependencies_parsed_at":"2023-09-27T15:56:08.705Z","dependency_job_id":null,"html_url":"https://github.com/ttldtor/Console","commit_stats":null,"previous_names":["ttldtor/console"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2FConsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2FConsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2FConsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2FConsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttldtor","download_url":"https://codeload.github.com/ttldtor/Console/tar.gz/refs/heads/default","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239209357,"owners_count":19600312,"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":[],"created_at":"2024-11-06T13:19:03.582Z","updated_at":"2025-02-16T23:24:54.847Z","avatar_url":"https://github.com/ttldtor.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console\nCross-platform library of utilities for working with the console.\n\n[![Build](https://github.com/ttldtor/Console/actions/workflows/build.yml/badge.svg?branch=default)](https://github.com/ttldtor/Console/actions/workflows/build.yml)\n[![Release](https://img.shields.io/github/v/release/ttldtor/Console)](https://github.com/ttldtor/Console/releases/latest)\n![](https://img.shields.io/badge/C++%20standard-C++11-blueviolet)\n[![License](https://img.shields.io/badge/license-BSL--1.0-orange)](https://github.com/ttldtor/Console/blob/default/LICENSE)\n[![Downloads](https://img.shields.io/github/downloads/ttldtor/Console/total)](https://github.com/ttldtor/Console/releases/latest)\n\n### Status:\n* [x] Windows\n* [x] Linux\n* [x] MacOS\n* [x] Termux\n* [ ] FreeBSD\n* [ ] OpenBSD\n* [ ] AIX\n* [ ] ...\n\n### Example:\n\n_**CMakeLists.txt:**_\n```cmake\ncmake_minimum_required(VERSION 3.20)\n\nproject(Test LANGUAGES CXX)\n\nset(CMAKE_CXX_STANDARD 11)\nset(CMAKE_C_STANDARD 11)\nset(CXX_EXTENSIONS OFF)\nset(C_EXTENSIONS OFF)\n\ninclude(FetchContent)\nFetchContent_Declare(Console GIT_REPOSITORY \"https://github.com/ttldtor/Console.git\" GIT_TAG default)\nFetchContent_MakeAvailable(Console)\n\nadd_executable(${PROJECT_NAME}\n        main.cpp\n)\n\ntarget_link_libraries(${PROJECT_NAME} PRIVATE console::console)\n\n```\n\n**_main.cpp:_**\n```cpp\n#include \u003ciostream\u003e\n\n#include \u003cconsole/console.hpp\u003e\n\nusing namespace org::ttldtor::console;\n\nint main() {\n    auto consoleSize = Console::getSize();\n\n    std::cout \u003c\u003c \"Console size: \" \u003c\u003c consoleSize.first \u003c\u003c \" x \" \u003c\u003c consoleSize.second \u003c\u003c std::endl;\n\n    return 0;\n}\n```\n\n_**Program output:**_\n```text\nConsole size: 120 x 27\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttldtor%2Fconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttldtor%2Fconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttldtor%2Fconsole/lists"}