package inquire
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0b88d89e24d4cbc0560a7c8d8ec51388990e1b27f24685029997afa52a7c720f
sha512=8b62860a8d15e41528a404a6f1b9968c3d79755607b5ea319af2e3e45516e672a785361d278279910928db4054e1800e87bcee0210ff3eabfb330713b368c827
doc/inquire.lambda-term/LTerm_resources/index.html
Module LTerm_resources
Widgets resources
val empty : tThe empty set of resources.
val get : string -> t -> stringget key resources returns the key associated to the last pattern that matches key in resources, or the empty string if no pattern matches key.
add pattern value returns the new set of resources with the binding pattern -> value at the end.
val get_bool : string -> t -> bool optionget_bool name resources reads the boolean encoded in resources.
val get_color : string -> t -> LTerm_style.color optionget_color name resources reads the color encoded in resources.
val get_style : string -> t -> LTerm_style.tget_style prefix resources reads the style encoded in resources.
val get_connection : string -> t -> LTerm_draw.connectionget_connection name resources
Parse_error(source, line, msg) is raised when a parsing error is encountered in the input.
val parse : string -> tparse str parses a string for a list of properties. str must follow the format of X resources files. i.e. comments start with a !, empty lines are ignored, and configuration lines looks-like:
key: valueval xdgbd_file : loc:xdg_location -> ?legacy_name:string -> string -> stringxdgbd_file ~loc fn returns the full file-name for a file fn in the XDG Base Directory corresponding to the variant given by loc.
E.g. xdgbd_file ~loc:LTerm_resources.Cache app_history would return something like "/home/user/.cache/app_history"
Follows the XDG Base Directory specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
If the optional parameter legacy_name is given, first check if there is already a file with the given name in the user's home directory. If it finds such a file, it returns that filename, else it resorts to regular behavior.