{"id":13442525,"url":"https://github.com/vindarel/format-colors","last_synced_at":"2026-01-19T05:32:50.136Z","repository":{"id":67525162,"uuid":"300651933","full_name":"vindarel/format-colors","owner":"vindarel","description":"(format t \"~/blue/ :)\" \"Hello\")","archived":false,"fork":false,"pushed_at":"2020-10-06T15:48:25.000Z","size":12,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T22:28:58.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","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/vindarel.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-10-02T15:07:01.000Z","updated_at":"2024-03-27T00:37:29.000Z","dependencies_parsed_at":"2024-03-29T06:00:43.926Z","dependency_job_id":null,"html_url":"https://github.com/vindarel/format-colors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vindarel/format-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Fformat-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Fformat-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Fformat-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Fformat-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vindarel","download_url":"https://codeload.github.com/vindarel/format-colors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Fformat-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28561858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":[],"created_at":"2024-07-31T03:01:46.813Z","updated_at":"2026-01-19T05:32:50.122Z","avatar_url":"https://github.com/vindarel.png","language":"Common Lisp","funding_links":[],"categories":["Common Lisp"],"sub_categories":[],"readme":"\nSimple `format` directives to print in colors:\n\nOn [Ultralisp](https://ultralisp.org/).\n\n~~~lisp\n(format t \"Hello ~/cyan/, are you a ~/green/ or ~/red/?\" \"you\" \"lisper\" \"not\")\n~~~\n\n=\u003e\n\n\u003c!-- \u003cspan\u003eHello \u003cspan style=\"color: cyan\"\u003eyou\u003c/span\u003e, are you a \u003cspan style=\"color: green\"\u003elisper\u003c/span\u003e or \u003cspan style=\"color: red\"\u003enot\u003c/span\u003e? --\u003e\n\n![](formatcolor.png)\n\nInstead of (with `cl-ansi-text`):\n\n~~~lisp\n(use-package :cl-ansi-text)\n(format t \"Hello ~a, are you a ~a or ~a?\" (cyan \"you\") (green \"lisper\") (red \"not\"))\n;; or\n;; (format t \"Hello ~a, are you a ~a or ~a?\" (cl-ansi-text:cyan \"you\") (cl-ansi-text:green \"lisper\") (cl-ansi-text:red \"not\"))\n~~~\n\n**Bold and italic modifiers**\n\nLike all format directives, these can accept the `:` and `@` modifiers. `:` will be for `:`talic and `@` for b`@`ld.\n\n    \"~:/blue/\"\n    \"~@/blue/\"\n\nThere are also numerical parameters that we don't use.\n\nIt is possible to call the color functions directly, their signature is `stream arg colon-p at-sign-p \u0026rest params`:\n\n~~~lisp\n(blue t \"hello\" nil nil)\n~~~\n\n\n## Install\n\n~~~lisp\n(use-package :format-colors)\n;; or import from :format-colors the symbols :red :blue :yellow :green :cyan :black :white :magenta.\n~~~\n\n\nThat's all. Let's see how it goes.\n\nLLGPL\n\n---\n\nps: to enable colors in Slime, one solution is [M-x slime-repl-ansi-on](https://github.com/deadtrickster/slime-repl-ansi-color/) (in MELPA).\n\n``` lisp\n(with-eval-after-load 'slime-repl\n  (require 'slime-repl-ansi-color))\n(add-hook 'slime-repl-mode-hook 'slime-repl-ansi-color-mode)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindarel%2Fformat-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvindarel%2Fformat-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindarel%2Fformat-colors/lists"}