package ocolor
Print with style in your terminal using Format's semantic tags
Install
Dune Dependency
Authors
Maintainers
Sources
1.3.0.tar.gz
md5=69d812bbe75df142ad093680ce5a1452
sha512=4d51bf2f5037f67ce262c97896bc8babd9b2beeeb00c492fdaa337b07ed61aa46b9dd1d3feba95a4940f9c0030dd712e8baecbcf94be6d81fdb3d752622d12fc
doc/ocolor/Ocolor_sgr/index.html
Module Ocolor_sgr
Source
Until the last moment, it is more convenient to work with list of integers. It is easier to apply several styles at once, since a sequence can be the concatenation of several simple sequences. And, at the last moment, we translate it as the string sequence as it will be passed to the terminal.
Translate a list of integer to the corresponding escape sequence string. This is the list of integer separated by Ocolor_config.separator
(by default ";"), surrounded by the appropriate prefix and suffix (resp. "\x1b["
and "m"
)
Parametric style sequences
Foreground color
Integer sequences
Escape sequences
Legal values for parameters are [0; 255].
Background color
Integer sequences
Escape sequences
Legal values for parameters are [0; 255].
Font
Integer sequences
Escape sequences
Legal values for parameters are [1; 9]
Non parametric style sequences
SGR sequences of common styles as int list
String SGR sequences of common styles
Integer and escape sequence for arbitrary style
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page