package textutils

  1. Overview
  2. Docs

Handling of ansi codes.

val kill_line : unit -> unit
val erase_to_end_of_screen : unit -> unit
val erase_to_start_of_screen : unit -> unit
val erase_all : unit -> unit
val bell : unit -> unit
val home : unit -> unit
val home_cursor : unit -> unit
val cursor_up : unit -> unit
val cursor_down : unit -> unit
val cursor_backward : unit -> unit
val cursor_forward : unit -> unit
val save_cursor : unit -> unit
val unsave_cursor : unit -> unit
type attr = Ansi_kernel.Attr.t
val printf : attr list -> ('a, Core.Out_channel.t, unit) Core.format -> 'a
val eprintf : attr list -> ('a, Core.Out_channel.t, unit) Core.format -> 'a
val output_string : attr list -> Core.Out_channel.t -> string -> unit
val output : attr list -> Core.Out_channel.t -> Core.Bytes.t -> int -> int -> unit
val string_with_attr : attr list -> string -> string
OCaml

Innovation. Community. Security.