Handy ANSI related functionality. Note: requiring this namespace has the side effect of enabling JANSI.
Handy ANSI related functionality. Note: requiring this namespace has the side effect of enabling [JANSI](https://github.com/fusesource/jansi?tab=readme-ov-file#example-usage).
(apply-attributes attributes s)
Applies all of provided attributes (a seq) to s
(a String
).
Applies all of provided attributes (a seq) to `s` (a `String`).
(apply-colour fg? colour-key s)
Applies an 'enhanced' colour keyword (which may include the prefix 'bright-') to either the foreground or background of body.
Applies an 'enhanced' colour keyword (which may include the prefix 'bright-') to either the foreground or background of body.
(apply-colours-and-attrs fg-colour bg-colour attrs s)
Applies the foreground colour, background colour, and attributes (a seq) to
s
(a String
).
Applies the foreground colour, background colour, and attributes (a seq) to `s` (a `String`).
(debug-print & args)
Send debug output to the upper left corner of the screen, where (hopefully) it minimises interference with everything else.
Send debug output to the upper left corner of the screen, where (hopefully) it minimises interference with everything else.
(debug-print-at x y & args)
Send debug output to the specified screen location (note: ANSI screen coordinates are 1-based).
Send debug output to the specified screen location (note: ANSI screen coordinates are 1-based).
(hide-cursor!)
Hides the cursor (not implemented by JANSI).
Hides the cursor (not implemented by JANSI).
(print-at x y & msgs)
Send text output to the specified screen locations (note: ANSI screen coordinates are 1-based). msgs may include jansi formatting.
Send text output to the specified screen locations (note: ANSI screen coordinates are 1-based). msgs may include jansi formatting.
(restore-cursor!)
Issues both SCO and DEC restore-cursor ANSI codes, for maximum compatibility.
Issues both SCO and DEC restore-cursor ANSI codes, for maximum compatibility.
(save-cursor!)
Issues both SCO and DEC save-cursor ANSI codes, for maximum compatibility.
Issues both SCO and DEC save-cursor ANSI codes, for maximum compatibility.
(show-cursor!)
Shows the cursor (not implemented by JANSI).
Shows the cursor (not implemented by JANSI).
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |