clean up interfaces
This commit is contained in:
parent
7b907f8812
commit
0f82bd2dba
1
lib/ansi.mli
Normal file
1
lib/ansi.mli
Normal file
@ -0,0 +1 @@
|
||||
val ansi_parse : Types.chunk Angstrom.t
|
@ -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
2
lib/env.mli
Normal file
@ -0,0 +1,2 @@
|
||||
val colours : Types.colour array
|
||||
val order : int array
|
@ -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
|
||||
|
@ -1 +0,0 @@
|
||||
val read_all : unit -> unit
|
@ -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
|
Loading…
Reference in New Issue
Block a user