package matrix
Module Matrix_test.ProfileSource
Terminal profiles, the facts of a terminal that a session plays.
type t = {tty : bool;(*
*)falsefor an output that is not a terminal, such as a pipe. The run then sets no mode and asks nothing, and the size is reported in band, as a mode 2048 report in the run's input (Matrix.run).answers : bool;(*
*)falsefor a terminal that answers no query, such as one behind a link that drops its replies. A run waits for its answers until its wait ends, and the session's clock moves there.env : (string * string) list;(*The environment of the program's session, such as
*)TERMandCOLORTERM, from which the program guesses what the terminal does until it answers.identity : Vte.identity;(*Its answers to DA1, DA2 and XTVERSION.
*)extensions : Vte.extension list;(*The protocols it implements beyond the VT core.
*)width_method : Matrix.Text.width_method;(*How it measures text.
*)palette : Matrix.Ansi.Palette.t;(*The palette its user configured.
*)color_scheme : [ `Dark | `Light ];(*The scheme its user chose.
*)cell_size : (int * int) option;(*The size of its cells in pixels,
*)(width, height), which it reports toCSI 16 tandCSI 14 t(Creating).
}The type for profiles. A named terminal enters as a value whose facts cite that terminal's documentation.
vte is matrix's emulator as it is: a terminal that answers, with its own identity (Vte.vt100), every extension, Unicode widths, the palette Matrix.Ansi.Palette.default, a dark scheme, no cell size, TERM=xterm-256color and COLORTERM=truecolor.