Liking cljdoc? Tell your friends :D

ansi-escape

ANSI color escape sequences.

Clojars Project

Design goals

  • Give names for ANSI color escape sequences.
  • Simple, no fancy DSL for color output.

Usage

(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")

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close