{"id":22870570,"url":"https://github.com/layerex/term-invert-colors","last_synced_at":"2026-02-07T07:33:36.257Z","repository":{"id":144120814,"uuid":"356535367","full_name":"Layerex/term-invert-colors","owner":"Layerex","description":"A simple program for inverting color ANSI escape codes.","archived":false,"fork":false,"pushed_at":"2022-05-27T19:05:28.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T07:33:28.217Z","etag":null,"topics":["ansi-escape-codes","cli","colors","escape-codes"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Layerex.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,"zenodo":null}},"created_at":"2021-04-10T09:36:22.000Z","updated_at":"2023-08-19T17:49:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc7c86e4-837b-4d38-ae7b-9241abb2c79e","html_url":"https://github.com/Layerex/term-invert-colors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Layerex/term-invert-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layerex%2Fterm-invert-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layerex%2Fterm-invert-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layerex%2Fterm-invert-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layerex%2Fterm-invert-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Layerex","download_url":"https://codeload.github.com/Layerex/term-invert-colors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layerex%2Fterm-invert-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29189353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ansi-escape-codes","cli","colors","escape-codes"],"created_at":"2024-12-13T13:15:04.107Z","updated_at":"2026-02-07T07:33:36.237Z","avatar_url":"https://github.com/Layerex.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# term-invert-colors\n\nA simple program for inverting [color ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors). I made this for finely viewing hardcoded colorschemes with light terminal background.\n\n## Installation\n\nFirst install [libansiescape](https://github.com/paultag/libansiescape/).\n\nThen clone this repository and execute:\n\n```sh\nsudo make install\n```\n\n## Usage\n\n```\nUsage: term-invert-colors [-bg -fg -8 -8bg -8fg -b8 -b8bg -b8fg -16 -16bg -16fg -216 -216bg -216fg -grayscale -grayscalebg -grayscalefg -256 -256bg -256fg -rgb -rgbbg -rgbfg]\nFlags specify which colors to invert. If no flags specified, all colors all inverted.\n\"bg\" and \"fg\" flag suffixes specify whether to invert only background or only foreground colors respectively. Flags without such suffixes invert both background and foreground colors.\n-fg        All foreground colors.\n-bg        All background colors.\n-8         8 standart colors.\n-b8        8 bright colors.\n-16        All colors of 16-color palette. Equal to -8 -b8.\n-216       216 colors of color cube of 256-color palette.\n-grayscale 24 shades of gray of 256-color palette.\n-256       All colors of 256-color palette. Equal to -16 -216 -grayscale.\n-rgb       All rgb colors.\nTake a look at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors if in doubt.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerex%2Fterm-invert-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayerex%2Fterm-invert-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerex%2Fterm-invert-colors/lists"}