This is the chlorophyll Reference Manual, version 0.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed Mar 15 04:33:54 2023 GMT+0.
The main system appears first, followed by any subsystem dependency.
chlorophyll
ANSI escape code library for Common Lisp
Mikhail Gorozhin <m.gorozhin@gmail.com>
Expat
‘chlorophyll‘ is a ANSI escape code library for Common Lisp.
## Installation
### Quicklisp
Coming soon.
### Ultralisp
Set up [Ultralisp](https://ultralisp.org/), load ‘chlorophyll‘:
“‘common-lisp
(ql:quickload "chlorophyll")
“‘
## Usage
“‘common-lisp
(let ((very-peri (chlorophyll:create-rgb-color 102 103 171))
(hot-pink (chlorophyll:create-rgb-color 255 105 180)))
(format t "~A~%~A~%" (chlorophyll:overline "overline text")
(chlorophyll:stylize
(chlorophyll:new-style
:bold t
:foreground hot-pink
:background very-peri)
"beautiful text")))
“‘
0.0.1
alexandria
(system).
src
(module).
Modules are listed depth-first from the system components tree.
chlorophyll/src
chlorophyll
(system).
package.lisp
(file).
color.lisp
(file).
style.lisp
(file).
positioning.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
chlorophyll/chlorophyll.asd
chlorophyll/src/package.lisp
chlorophyll/src/color.lisp
chlorophyll/src/style.lisp
chlorophyll/src/positioning.lisp
chlorophyll/chlorophyll.asd
chlorophyll
(system).
chlorophyll/src/color.lisp
src
(module).
create-ansi-256-color
(function).
create-no-color
(function).
create-rgb-color
(function).
ansi-256-color
(class).
blue
(reader method).
(setf blue)
(writer method).
color
(class).
color-id
(reader method).
(setf color-id)
(writer method).
green
(reader method).
(setf green)
(writer method).
no-color
(class).
red
(reader method).
(setf red)
(writer method).
rgb-color
(class).
chlorophyll/src/style.lisp
src
(module).
+background+
(constant).
+blink+
(constant).
+bold+
(constant).
+crossout+
(constant).
+faint+
(constant).
+foreground+
(constant).
+invert+
(constant).
+italic+
(constant).
+overline+
(constant).
+reset+
(constant).
+underline+
(constant).
blinkp
(reader method).
boldp
(reader method).
crossoutp
(reader method).
faintp
(reader method).
get-background
(reader method).
get-foreground
(reader method).
invertp
(reader method).
italicp
(reader method).
overlinep
(reader method).
style
(class).
to-sequence
(method).
to-sequence
(method).
to-sequence
(method).
underlinep
(reader method).
chlorophyll/src/positioning.lisp
src
(module).
cursor-backward
(function).
cursor-down
(function).
cursor-forward
(function).
cursor-next-line
(function).
cursor-previous-line
(function).
cursor-up
(function).
move-cursor
(function).
restore-cursor-position
(function).
save-cursor-position
(function).
Packages are listed by definition order.
chlorophyll
alexandria
.
common-lisp
.
background
(function).
blink
(function).
bold
(function).
create-ansi-256-color
(function).
create-no-color
(function).
create-rgb-color
(function).
crossout
(function).
cursor-backward
(function).
cursor-down
(function).
cursor-forward
(function).
cursor-next-line
(function).
cursor-previous-line
(function).
cursor-up
(function).
faint
(function).
foreground
(function).
invert
(function).
italic
(function).
move-cursor
(function).
new-style
(function).
overline
(function).
restore-cursor-position
(function).
save-cursor-position
(function).
stylize
(generic function).
underline
(function).
+background+
(constant).
+blink+
(constant).
+bold+
(constant).
+crossout+
(constant).
+faint+
(constant).
+foreground+
(constant).
+invert+
(constant).
+italic+
(constant).
+overline+
(constant).
+reset+
(constant).
+underline+
(constant).
ansi-256-color
(class).
blinkp
(generic reader).
blue
(generic reader).
(setf blue)
(generic writer).
boldp
(generic reader).
color
(class).
color-id
(generic reader).
(setf color-id)
(generic writer).
crossoutp
(generic reader).
faintp
(generic reader).
get-background
(generic reader).
get-foreground
(generic reader).
green
(generic reader).
(setf green)
(generic writer).
invertp
(generic reader).
italicp
(generic reader).
no-color
(class).
overlinep
(generic reader).
red
(generic reader).
(setf red)
(generic writer).
rgb-color
(class).
style
(class).
to-sequence
(generic function).
underlinep
(generic reader).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Eloquent constructor setting BACKGROUND
Eloquent constructor setting BLINK
Eloquent constructor setting BOLD
Constructor for an ANSI-256-COLOR
Constructor for an NO-COLOR
Constructor for an RGB-COLOR
Eloquent constructor setting CROSSOUT
Moves cursor N columns backward
Moves cursor N rows down
Moves cursor N columns forward
Moves cursor to beginning of the line n lines up
Moves cursor to beginning of the line n lines down
Moves cursor N rows up
Eloquent constructor setting FAINT
Eloquent constructor setting FOREGROUND
Eloquent constructor setting INVERT
Eloquent constructor setting ITALIC
Moves cursor to desired position
Constructor for a STYLE
Eloquent constructor setting OVERLINE
Restores the cursor position
Saves current cursor position
Eloquent constructor setting UNDERLINE
ANSI defined constant for a foreground color
ANSI defined constant for blinking text
ANSI defined constant for bold text
ANSI defined constant for crossedout text
ANSI defined constant for faint text
ANSI defined constant for a background color
ANSI defined constant for inverted colors
ANSI defined constant for italic text
ANSI defined constant for an overlined text
ANSI defined constant for a reset action
ANSI defined constant for an underlined text
ansi-256-color
)) ¶ansi-256-color
)) ¶Position in a predefined set of colors
rgb-color
)) ¶Converts RGB-COLOR to a ANSI escape sequence color definition
ansi-256-color
)) ¶Converts ANSI-256-COLOR to a ANSI escape sequence color definition
Represents a color from predefined ANSI set of colors
Position in a predefined set of colors
(integer 0 255)
:color-id
Base class representing color, not to be used directly
NOOP color class, not representing any real color
Represents a 24-bit RGB color
Amount of GREEN in color
(integer 0 255)
:green
Represents a styleset appliable for the text
Defines whether text should be bold
boolean
:bold
This slot is read-only.
Defines whether text should be faint
boolean
:faint
This slot is read-only.
Defines whether text should be italic
boolean
:italic
This slot is read-only.
Defines whether text should be underlined
boolean
:underline
This slot is read-only.
Defines whether text should blink
boolean
:blink
This slot is read-only.
Defines whether text should have inverted foreground/background
boolean
:invert
This slot is read-only.
Defines whether text should be overlined
boolean
:overline
This slot is read-only.
Defines a foreground color for the text
(or chlorophyll::color null)
:foreground
This slot is read-only.
Defines a background color for the text
(or chlorophyll::color null)
:background
This slot is read-only.
Jump to: | (
B C F G I M N O R S T U |
---|
Jump to: | (
B C F G I M N O R S T U |
---|
Jump to: | +
B C F G I O R S U |
---|
Jump to: | +
B C F G I O R S U |
---|
Jump to: | A C F M N P R S |
---|
Jump to: | A C F M N P R S |
---|