{"id":13571138,"url":"https://github.com/randrews/color","last_synced_at":"2025-04-04T07:33:03.844Z","repository":{"id":3115824,"uuid":"4142541","full_name":"randrews/color","owner":"randrews","description":"An ANSI color library for Lua","archived":false,"fork":false,"pushed_at":"2017-04-06T23:54:51.000Z","size":5,"stargazers_count":37,"open_issues_count":2,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T06:51:03.920Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/randrews.png","metadata":{"files":{"readme":"readme.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-25T23:53:07.000Z","updated_at":"2025-03-08T20:25:21.000Z","dependencies_parsed_at":"2022-07-18T08:49:01.810Z","dependency_job_id":null,"html_url":"https://github.com/randrews/color","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/randrews%2Fcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randrews%2Fcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randrews%2Fcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randrews%2Fcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/randrews","download_url":"https://codeload.github.com/randrews/color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247139593,"owners_count":20890261,"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-08-01T14:00:59.049Z","updated_at":"2025-04-04T07:32:58.818Z","avatar_url":"https://github.com/randrews.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"Color.lua - ANSI control library for Lua\n========================================\n\nA super-simple way to make colored text output in Lua.\nTo use, simply print out things from this module, then print out some text.\n\nExamples:\n----------\n\n```lua\nprint(color.bg.green .. color.fg.RED .. \"This is bright red on green\")\n\nprint(color.invert .. \"This is inverted...\" .. color.reset .. \" And this isn't.\")\n\nprint(color.fg(0xDE) .. color.bg(0xEE) ..\n    \"You can use xterm-256 colors too!\" ..\n    color.reset)\n\nprint(\"And also \" .. color.bold .. \"BOLD\" .. color.normal .. \" if you want.\")\n\nprint(color.bold .. color.fg.BLUE .. color.bg.blue ..\n    \"Miss your \" .. color.fg.RED .. \"C-64\" ..\n    color.fg.BLUE .. \"?\" .. color.reset)\n```\n\nYou can see all these examples in action by calling `color.test()`\n\nCan't pick a good color scheme? Look at a handy chart:\n\n```lua\nprint(color.chart())\n```\n\nExtending:\n----------\n\nI figured out most of how to write this from the excellent [Wikipedia page on ANSI control codes](http://en.wikipedia.org/wiki/ANSI_escape_code). If you want to extend it, that would be a good place to start. And send me a pull request!\n\nPortability:\n-----------\n\nThis doesn't work on Windows at all, and it would be a really nontrivial effort to port it.\n\nLicense:\n----------\n\nCopyright 2012 by Ross Andrews, released under the [GNU Lesser General Public License](http://www.gnu.org/licenses/lgpl.txt).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandrews%2Fcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandrews%2Fcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandrews%2Fcolor/lists"}