package printbox-text
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Text renderer for printbox, using unicode edges
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.6.1.tar.gz
md5=6e065332d7db622572bd963dbd530589
sha512=7c0882333d2b297c235ee73f09e8b95cdd6013909db0f1b7e07a1b90153e6a3e68249715c90030e033ced6ab3a40aab41d4470d686164676acb544ccbe6ba715
doc/printbox-text/PrintBox_text/index.html
Module PrintBox_textSource
Render to Text
This module should be used to output boxes directly to a terminal, or another area of monospace text
Set which function is used to compute string length. Typically to be used with a unicode-sensitive length function. An example of such a function for utf8 encoded strings is the following (it uses the Uutf and Uucp libraries):
let string_leng s i len =
Uutf.String.fold_utf_8 ~pos:i ~len
(fun n _ c -> n+ max 0 (Uucp.Break.tty_width_hint c)) 0 sNote that this function assumes there is no newline character in the given string.
Returns a string representation of the given structure.
Returns a string representation of the given structure, with style.
Outputs the given structure on the channel.
Pretty-print the box into this formatter.
Pretty-print the box into this formatter, with style.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page