Liking cljdoc? Tell your friends :D

monkey.ci.console

Functionality for printing to the console, probably using ANSI coloring.

Functionality for printing to the console, probably using ANSI coloring.
raw docstring

accentclj

(accent s)
source

badclj

source

color-256clj

(color-256 fg & [bg])

Ansi control codes for 256 color code, with optional background color

Ansi control codes for 256 color code, with optional background color
sourceraw docstring

colsclj

(cols)
(cols env)

Returns number of columns in the console

Returns number of columns in the console
sourceraw docstring

csiclj

Control sequence introducer

Control sequence introducer
sourceraw docstring

ctrl-codeclj

(ctrl-code & parts)

Formats an Ansi control code with given parts

Formats an Ansi control code with given parts
sourceraw docstring

erase-lineclj

(erase-line)
(erase-line n)

Erases part or all of the line. For values of n: 0: from cursor to EOL 1: from cursor to beginning of line 2: entire line (default)

Erases part or all of the line. 
For values of `n`:
  `0`: from cursor to EOL
  `1`: from cursor to beginning of line
  `2`: entire line (default)
sourceraw docstring

errorclj

(error s)
source

escclj

Ansi escape code

Ansi escape code
sourceraw docstring

font-codeclj

(font-code & parts)

Ansi control codes for font formatting

Ansi control codes for font formatting
sourceraw docstring

goodclj

source

invertclj

Invert fore and bg colors

Invert fore and bg colors
sourceraw docstring

jump-upclj

(jump-up n)

Moves cursor up n lines

Moves cursor up `n` lines
sourceraw docstring

overwriteclj

(overwrite s & args)

Overwrites the previous line with the string

Overwrites the previous line with the string
sourceraw docstring

prev-lineclj

source

(print-lines lines)

Prints given sequence of lines

Prints given sequence of lines
sourceraw docstring

progress-barclj

(progress-bar {w :width
               p :value
               f :filled-char
               u :unfilled-char
               dp :decimal-fill
               s :start
               :or {f \█ u \space s 0}})

Creates progress bar of given width (chars) with given value filled. If decimal-fill is specified, it is used to determine the char when a place is only partially filled. Returns a string that can be printed to console.

Creates progress bar of given width (chars) with given value filled.  If
`decimal-fill` is specified, it is used to determine the char when a
place is only partially filled.  Returns a string that can be printed
to console.
sourceraw docstring

render-nextclj

(render-next {:keys [prev renderer state]})

Used in a render loop: renders the next iteration, given the rendering state, which contains the previously rendered lines, the renderer and rendering state. The cursor jumps back to the original printing position, according to the number of lines previously printed.

Used in a render loop: renders the next iteration, given the rendering
state, which contains the previously rendered lines, the renderer and 
rendering state.  The cursor jumps back to the original printing position,
according to the number of lines previously printed.
sourceraw docstring

resetclj

Resets previous ansi instructions

Resets previous ansi instructions
sourceraw docstring

revertclj

Switch back fore and bg colors

Switch back fore and bg colors
sourceraw docstring

rowsclj

(rows)
(rows env)

Returns number of lines in the console

Returns number of lines in the console
sourceraw docstring

successclj

(success s)
source

urlclj

(url url)
source

warningclj

(warning s)
source

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