Liking cljdoc? Tell your friends :D

charm.ansi.parser

ANSI escape sequence parsing.

Parses ANSI escape sequences into structured data for processing.

ANSI escape sequence parsing.

Parses ANSI escape sequences into structured data for processing.
raw docstring

BELclj

source

CSIclj

source

ESCclj

source

extract-sequencesclj

(extract-sequences s)

Extract all ANSI sequences from a string. Returns a seq of {:start int :end int :raw str :parsed map}.

Extract all ANSI sequences from a string.
Returns a seq of {:start int :end int :raw str :parsed map}.
sourceraw docstring

OSCclj

source

parse-csiclj

(parse-csi s)

Parse a CSI sequence into its components. Returns {:type :csi :params [...] :intermediate str :final char} or nil.

Parse a CSI sequence into its components.
Returns {:type :csi :params [...] :intermediate str :final char} or nil.
sourceraw docstring

parse-oscclj

(parse-osc s)

Parse an OSC sequence into its components. Returns {:type :osc :command int :data str} or nil.

Parse an OSC sequence into its components.
Returns {:type :osc :command int :data str} or nil.
sourceraw docstring

parse-sgrclj

(parse-sgr s)

Parse an SGR (style) sequence into its parameters. Returns {:type :sgr :params [...]} or nil.

Parse an SGR (style) sequence into its parameters.
Returns {:type :sgr :params [...]} or nil.
sourceraw docstring

reset-styleclj

(reset-style)

Generate a reset SGR sequence.

Generate a reset SGR sequence.
sourceraw docstring

sgrclj

(sgr & params)

Generate an SGR escape sequence from parameters. Accepts numbers or keywords from sgr-codes.

Generate an SGR escape sequence from parameters.
Accepts numbers or keywords from sgr-codes.
sourceraw docstring

sgr-code->nameclj

Reverse lookup: code number to keyword.

Reverse lookup: code number to keyword.
sourceraw docstring

sgr-codesclj

Common SGR parameter codes.

Common SGR parameter codes.
sourceraw docstring

split-ansiclj

(split-ansi s)

Split a string into segments of plain text and ANSI sequences. Returns a seq of {:type (:text | :ansi) :content str :parsed map?}.

Split a string into segments of plain text and ANSI sequences.
Returns a seq of {:type (:text | :ansi) :content str :parsed map?}.
sourceraw docstring

STclj

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