Module Hardcaml_waveterm_interactive.Draw_notty

Notty based gfx API. We need to use an intermediate in memory representation for notty.

include module type of Hardcaml_waveterm_kernel.Draw
type piece = Hardcaml_waveterm_kernel.Draw.piece =
  1. | TL
  2. | BR
  3. | BL
  4. | TR
  5. | V
  6. | H
  7. | T
  8. | Tu
  9. | C
  10. | F
  11. | TH
  12. | BH
  13. | LH
  14. | RH
  15. | QTL
  16. | QBR
  17. | QBL
  18. | QTR
  19. | Up_arrow
  20. | Down_arrow
val sexp_of_piece : piece -> Sexplib0.Sexp.t
val unicode_of_piece : piece -> Base.int

unicode value of piece

val init : rows:Base.int -> cols:Base.int -> ctx
val rows : ctx -> Base.int
val cols : ctx -> Base.int

get context size

val clear : ctx -> Base.unit

clear display

fill bounds with char given style

draw int (representing unicode value)

draw piece

draw char

draw string (nothing fancy - horizontal, no breaks)

draw box outline with label

get value and style at point

invert fg and bg at point. Or force to given style if provided.

val bold : ctx:ctx -> bounds:Hardcaml_waveterm_kernel.Rect.t -> r:Base.int -> c:Base.int -> Base.unit

set bold on point

val to_image : ctx -> Notty.I.t
module Border : sig ... end