{"id":15684521,"url":"https://github.com/erikh/colt","last_synced_at":"2025-05-07T16:11:16.399Z","repository":{"id":57572022,"uuid":"347854662","full_name":"erikh/colt","owner":"erikh","description":"Terminal program for yielding color codes with a nice syntax","archived":false,"fork":false,"pushed_at":"2021-03-15T06:10:13.000Z","size":21,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T11:41:32.536Z","etag":null,"topics":["color","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","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/erikh.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}},"created_at":"2021-03-15T06:01:15.000Z","updated_at":"2022-09-22T10:11:41.000Z","dependencies_parsed_at":"2022-08-23T17:40:35.525Z","dependency_job_id":null,"html_url":"https://github.com/erikh/colt","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/erikh%2Fcolt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fcolt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fcolt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fcolt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikh","download_url":"https://codeload.github.com/erikh/colt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252912996,"owners_count":21824066,"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":["color","shell","terminal"],"created_at":"2024-10-03T17:18:22.410Z","updated_at":"2025-05-07T16:11:16.359Z","avatar_url":"https://github.com/erikh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colt: a tool for getting terminal color codes\n\n`colt` is a tool for getting terminal color codes. It uses a trivial syntax; aims to be similar to `tput` for terminals. Embed `colt` in shell scripts for maximum effect.\n\n## Install\n\n`go get github.com/erikh/colt`\n\n## Example\n\nPass a color to `colt` in a shell to print its terminal definition (\"escape code\"), like so:\n\n```bash\n#!/bin/bash\n\necho \"$(colt red)This is red text! $(colt blue on white)This is blue with a white background!\"\n```\n\n\u003cimg src=\"example.png\" /\u003e\n\n## Syntax\n\nThere are three positions in the grammar that are relevant:\n\nForeground is always in the first position. Specify `white` if you want to stick to standard text.\n\nIf you want to specify a background, specify it or use \"on\" to specify it with\na bit more of an english twist.\n\nIf you want to specify text attributes such as bold, underline, etc, specify them with \"with\", such as:\n\n```\ncolt red with bold underline\ncolt red on white with bold\n```\n\n\"Hi\" colors, or colors with slightly more on bits switched on are brighter colors (and also, subject to different rules on older terminals WRT backgrounds, so read up about that). These colors start with `hi` such as `hired` or `hiwhite`.\n\n[All the keywords are here](https://github.com/erikh/colt/blob/main/maps.go).\n\n## Author\n\nErik Hollensbe \u003cgithub@hollensbe.org\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fcolt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikh%2Fcolt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fcolt/lists"}