package hardcaml_waveterm
A terminal based digital waveform viewer for Hardcaml
Install
Dune Dependency
Authors
Maintainers
Sources
hardcaml_waveterm-v0.14.0.tar.gz
sha256=6651b37191cfb0f7744be383a79f5906415cb9ca77b6809c4fce075964bfda6d
md5=f43ed06620989b92f4a5a4a2024c1866
doc/hardcaml_waveterm.interactive/Hardcaml_waveterm_interactive/Draw_notty/index.html
Module Hardcaml_waveterm_interactive.Draw_notty
Source
Notty based gfx API. We need to use an intermediate in memory representation for notty.
include module type of Hardcaml_waveterm.Draw.In_memory
with type style = Hardcaml_waveterm.Draw.In_memory.style
include Hardcaml_waveterm.Draw.S
with type ctx = point Base.Array.t Base.Array.t
and type style = Hardcaml_waveterm.Draw.Style.t
with type style = Hardcaml_waveterm.Draw.In_memory.style
drawing context
underlying style type
get context size
convert our style info to underlying style
clear display
Source
val fill :
ctx:ctx ->
style:style ->
bounds:Hardcaml_waveterm.Draw.rect ->
Base.Char.t ->
Base.Unit.t
fill bounds
with char
given style
Source
val draw_int :
ctx:ctx ->
style:style ->
bounds:Hardcaml_waveterm.Draw.rect ->
r:Base.Int.t ->
c:Base.Int.t ->
Base.Int.t ->
Base.Unit.t
draw int (representing unicode value)
Source
val draw_piece :
ctx:ctx ->
style:style ->
bounds:Hardcaml_waveterm.Draw.rect ->
r:Base.Int.t ->
c:Base.Int.t ->
Hardcaml_waveterm.Draw.piece ->
Base.Unit.t
draw piece
Source
val draw_char :
ctx:ctx ->
style:style ->
bounds:Hardcaml_waveterm.Draw.rect ->
r:Base.Int.t ->
c:Base.Int.t ->
Base.Char.t ->
Base.Unit.t
draw char
Source
val draw_string :
ctx:ctx ->
style:style ->
bounds:Hardcaml_waveterm.Draw.rect ->
r:Base.Int.t ->
c:Base.Int.t ->
Base.String.t ->
Base.Unit.t
draw string (nothing fancy - horizontal, no breaks)
Source
val draw_box :
ctx:ctx ->
style:style ->
bounds:Hardcaml_waveterm.Draw.rect ->
Base.String.t ->
Base.Unit.t
draw box outline with label
Source
val get :
ctx:ctx ->
bounds:Hardcaml_waveterm.Draw.rect ->
r:Base.Int.t ->
c:Base.Int.t ->
Base.Int.t * Hardcaml_waveterm.Draw.Style.t
get value and style at point
Source
val inv :
ctx:ctx ->
bounds:Hardcaml_waveterm.Draw.rect ->
r:Base.Int.t ->
c:Base.Int.t ->
Base.Unit.t
invert fg and bg at point
Source
val bold :
ctx:ctx ->
bounds:Hardcaml_waveterm.Draw.rect ->
r:Base.Int.t ->
c:Base.Int.t ->
Base.Unit.t
set bold on point
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>