Module Ascii_tableSource

include module type of struct include Ascii_table_kernel end
Sourceval draw : ?display:Display.t -> ?spacing:int -> ?limit_width_to:int -> ?header_attr:Attr.t list -> ?display_empty_rows:bool -> prefer_split_on_spaces:bool -> 'row Column.t list -> 'row list -> Screen.t option @@ portable
Sourceval cols_and_data_of_strings : ?index:bool -> ?min_col_width:int -> ?max_col_width:int -> string list -> string list list -> string list Column.t list * string list list @@ portable
  • alert ascii_table_kernel_internal This function is intended only for use in Ascii_table.
Sourcetype ('row, 'rest) renderer = ?display:Display.t -> ?spacing:int -> ?limit_width_to:int -> ?header_attr:Attr.t list -> ?bars:[ `Ascii | `Unicode ] -> ?display_empty_rows:bool -> ?prefer_split_on_spaces:bool -> 'row Column.t list -> 'row list -> 'rest
Sourceval output : (_, oc:Core.Out_channel.t -> unit) renderer

The idea is that you have a Column.t list and a list of rows, where each row contains the data for each column. So e.g. 'a could be a record type {col_1 : int; col_2 : string}, where the first column pulls out col_1 and the second column pulls out col_2.

Sourceval to_string_noattr : (_, string) renderer @@ portable
Sourceval to_string : (_, string) renderer @@ portable
Sourceval default_max_col_width : int @@ portable

default_max_col_width is 90

Sourcetype 'rest simple_list := ?index:bool -> ?display:Display.t -> ?spacing:int -> ?limit_width_to:int -> ?min_col_width:int -> ?max_col_width:int -> ?header_attr:Attr.t list -> ?bars:[ `Ascii | `Unicode ] -> ?display_empty_rows:bool -> ?prefer_split_on_spaces:bool -> string list -> string list list -> 'rest

simple_list has the same defaults as renderer unless specified

Sourceval simple_list_table : ?oc:Core.Out_channel.t -> unit simple_list
Sourceval simple_list_table_string : string simple_list @@ portable