https://github.com/strojure/ansi-escape
ANSI color escape sequences.
https://github.com/strojure/ansi-escape
ansi clojure color-output terminal utility
Last synced: 4 months ago
JSON representation
ANSI color escape sequences.
- Host: GitHub
- URL: https://github.com/strojure/ansi-escape
- Owner: strojure
- License: unlicense
- Created: 2022-06-03T14:42:03.000Z (over 3 years ago)
- Default Branch: default
- Last Pushed: 2023-03-09T14:40:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-17T03:17:52.255Z (11 months ago)
- Topics: ansi, clojure, color-output, terminal, utility
- Language: Clojure
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ansi-escape
ANSI color escape sequences.
[](https://clojars.org/com.github.strojure/ansi-escape)
## Design goals
* Give names for ANSI color escape sequences.
* Simple, no fancy DSL for color output.
## Usage
```clojure
(ns readme.usage
(:require [strojure.ansi-escape.core :as ansi]))
;; Print `[ERROR]` as yellow on red
(println (str ansi/bg-red ansi/fg-yellow-b "[ERROR]" ansi/reset)
"Test error message")
```