package ocolor
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Print with style in your terminal using Format's semantic tags
Install
dune-project
Dependency
Authors
Maintainers
Sources
1.1.tar.gz
md5=094b701f30af41b89f554e978cb0762c
sha512=b558fb735d28c262b0cf047835df2bc59e89daf44fbaf55b3d73293457713cb2a45805965f4bd6aafac1e7bc6325b3e70ec59d3e4a096b25e99072fee68ac8ce
doc/ocolor/Ocolor_sgr/index.html
Module Ocolor_sgr
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 ranslate it as the string sequence as it will be passed to the terminal.
val sgr_of_seq : seq -> stringTranslate 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")
val code_of_color3 : Ocolor_types.color4 -> intval fg_code_of_color4 : Ocolor_types.color4 -> intval code_of_color8 : Ocolor_types.color8 -> intval bg_code_of_color4 : Ocolor_types.color4 -> intParametric style sequences
Foreground color
Integer sequences
val default_fg_seq : seqval fg_rgb_seq : int -> int -> int -> seqLegal values for parameters are [0; 255].
val fg_color4_seq : Ocolor_types.color4 -> seqval fg_color8_seq : Ocolor_types.color8 -> seqval fg_color24_seq : Ocolor_types.color24 -> seqval fg_color_seq : Ocolor_types.color -> seqEscape sequences
val fg_color4_sgr : Ocolor_types.color4 -> stringval fg_color8_sgr : Ocolor_types.color8 -> stringval fg_color24_sgr : Ocolor_types.color24 -> stringBackground color
Integer sequences
val default_bg_seq : seqval bg_rgb_seq : int -> int -> int -> seqLegal values for parameters are [0; 255].
val bg_color4_seq : Ocolor_types.color4 -> seqval bg_color8_seq : Ocolor_types.color8 -> seqval bg_color24_seq : Ocolor_types.color24 -> seqEscape sequences
val bg_color4_sgr : Ocolor_types.color4 -> stringval bg_color8_sgr : Ocolor_types.color8 -> stringval bg_color24_sgr : Ocolor_types.color24 -> stringval bg_color_seq : Ocolor_types.color -> seqFont
Integer sequences
val font_seq : int -> seqLegal values for parameter are [1; 9]
val default_font_seq : seqEscape sequences
Non parametric style sequences
SGR sequences of common styles as int list
val reset_seq : seqval bold_seq : seqval faint_seq : seqval italic_seq : seqval underlined_seq : seqval blink_seq : seqval reverse_video_seq : seqval conceal_seq : seqval crossed_out_seq : seqval fraktur_seq : seqval double_underlined_seq : seqval faint_bold_off_seq : seqval italic_fraktur_off_seq : seqval underlined_off_seq : seqval blink_off_seq : seqval reverse_video_off_seq : seqval concel_off_seq : seqval crossed_out_off_seq : seqval framed_seq : seqval encircled_seq : seqval overlined_seq : seqval framed_encircled_off_seq : seqval overlined_off_seq : seqString SGR sequences of common styles
Integer and escape sequence for arbitrary style
val seq_of_style : Ocolor_types.style -> seqval sgr_of_style : Ocolor_types.style -> stringval seq_of_styles : Ocolor_types.style list -> seqval styles_sgr : Ocolor_types.style list -> string sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page