clean up interfaces

This commit is contained in:
atagen 2024-12-03 14:30:20 +11:00
parent 7b907f8812
commit 0f82bd2dba
6 changed files with 6 additions and 16 deletions

1
lib/ansi.mli Normal file
View File

@ -0,0 +1 @@
val ansi_parse : Types.chunk Angstrom.t

View File

@ -1,5 +1,4 @@
type serialiser = { mutable buf : string; sz : int; mutable pos : int; }
type serialiser = { mutable buf : bytes; mutable pos : int; }
val flush : serialiser -> unit
val serialise : serialiser -> Types.chunk -> unit
val create : serialiser
val print_debug : serialiser -> unit

2
lib/env.mli Normal file
View File

@ -0,0 +1,2 @@
val colours : Types.colour array
val order : int array

View File

@ -1,2 +1,3 @@
val culr_parse : Types.chunk Angstrom.t
val debug_print : Types.chunk -> unit
val parse_env_colours : string -> Types.colour array
val parse_env_order : string -> int array

View File

@ -1 +0,0 @@
val read_all : unit -> unit

View File

@ -1,12 +0,0 @@
type colour =
| Intrinsic of int (* _0-_7 *)
| Simple of int (* _8;5;n *)
| RGB of int * int * int (* _8;2;r;g;b *)
type ansi_gfx = Bg of colour | Fg of colour | Reset | Other of int
type chunk =
| Text of string
| Separator of string
| Delimiter of string
| Ansi of ansi_gfx list