{"id":18597306,"url":"https://github.com/wiremoons/terminal-colours","last_synced_at":"2026-01-25T01:32:36.730Z","repository":{"id":83457424,"uuid":"340594967","full_name":"wiremoons/terminal-colours","owner":"wiremoons","description":"Small program that demonstrates displaying terminal colours with the Ada language.","archived":false,"fork":false,"pushed_at":"2021-02-20T09:05:46.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-16T13:52:45.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ada","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/wiremoons.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":"2021-02-20T07:48:36.000Z","updated_at":"2023-09-22T16:49:43.000Z","dependencies_parsed_at":"2023-04-17T06:17:12.936Z","dependency_job_id":null,"html_url":"https://github.com/wiremoons/terminal-colours","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wiremoons/terminal-colours","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fterminal-colours","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fterminal-colours/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fterminal-colours/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fterminal-colours/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremoons","download_url":"https://codeload.github.com/wiremoons/terminal-colours/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fterminal-colours/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28740914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:25:41.653Z","status":"ssl_error","status_checked_at":"2026-01-25T01:25:34.364Z","response_time":89,"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-11-07T01:27:38.168Z","updated_at":"2026-01-25T01:32:36.680Z","avatar_url":"https://github.com/wiremoons.png","language":"Ada","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE) \n![terminal-colours](https://github.com/wiremoons/terminal-colours/workflows/terminal-colours/badge.svg?branch=main) [![Alire](https://img.shields.io/endpoint?url=https://alire.ada.dev/badges/alire-badge.json)](https://alire.ada.dev/)\n\u003ca href=\"https://project-types.github.io/#toy\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/project%20type-toy-blue\" alt=\"Toy Badge\"/\u003e\n\u003c/a\u003e\n\n# What is 'terminal_colours'?\n\nThe repository contains a small command line (CLI) program that demonstrates displaying\nterminal colours with the Ada language.\n\nThe program was written to learn more about using the *GNAT Collection 'Terminal'* \npackage called: `GNATCOLL.Terminal`\n\nThe code is based on the AdaCore Gem published here: [https://docs.adacore.com/gnatcoll-docs/terminals.html](https://docs.adacore.com/gnatcoll-docs/terminals.html)\n\n\n## Status\n\nDemo code only for reference, shared in case is useful to others.\n\n\n## Usage Examples\n\nOnce built the program can be found in the **bin** sub directory. It can be run \nfrom a Windows `cmd.exe` or `pwsh` prompt, or a Linux terminal. I have not tested \nit on macOS.\n\n![Terminal_Colours](./img/terminal_colours.png)\n\n\n## Building the Application\n\nAn Ada language compiler will be needed to build the application. There are also a\nfew dependencies that will need to be met for a successful build of `terminal_colours`.\nThese steps are explained below.\n\n### Dependencies\n\nAs `terminal_colours` uses GNATColl *Terminal* package, the following \npackages are used to provide the support required:\n\n- [GNAT Collection - Core (GNATColl-Core)](https://github.com/AdaCore/gnatcoll-core)\n\nThere are two approaches to ensuring these are available when building `terminal_colours`:\n\n1. **Use Alire** : Clone this GitHub repo, and then easily add the required packages by running the \ncommand: `alr with gnatcoll` (except the defaults) and then `alr build`. The program can also be executed \nwith `alr run`.\n2. **Use AdaCore GNAT Programing Studio (GPS) 2020** : *GNATColl-Core*' is included with an \ninstallation of '*AdaCore GNAT Programing Studio (GPS) 2020 Community Edition*' so the program \nshould just build as outlined below.\n\n\n### Install an Ada Compiler and Supporting Libraries\n\nInstall an Ada compiler and supporting libraries. More information on installing \nAda can be found here: [Get Ada](http://www.getadanow.com/).\n\n### Building 'terminal_colours'\n\nTo build `terminal_colours` from source, the following steps can be used:\n\nOnce Ada is installed on your system, you can clone this GitHub repo with \nthe `git` command: `git clone https://github.com/wiremoons/terminal-colours.git`\n\nTo build and execute the program, the GNAT tool is required called: `gprbuild`.\n\nOnce install along with the other GNAT Ada compiler tools, the following commands \ncan be run: \n\n- For a 'release' build (default) run: `gprbuild -XBUILD=release`\n\n- For a 'debug' build run: `gprbuild -XBUILD=debug`\n\n- To reset and clean up run: `gprclean`\n\n- To format code file with Pretty Print (gnatpp) run: `gnatpp -P terminal_colours.gpr`\n\n\n## Licenses\n\nThe following licenses apply to the `terminal_colours` source code, and resulting built\napplication, as described below.\n\n#### License for 'terminal-colours'\n\nThis program `terminal-colours` is licensed under the **MIT License** see\nhttp://opensource.org/licenses/mit for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fterminal-colours","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremoons%2Fterminal-colours","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fterminal-colours/lists"}