Module Spectrum_tools.Query

Terminal query functions for detecting current colors.

Provides functions to query xterm-compatible terminals for their current foreground and background colors.

Terminal color querying utilities.

Provides functions to query xterm-compatible terminals for their current foreground and background colors using xterm control sequences.

type terminal_colours = {
  1. fg : (Gg.v4, string) Stdlib.result;
    (*

    Foreground color or error message

    *)
  2. bg : (Gg.v4, string) Stdlib.result;
    (*

    Background color or error message

    *)
}

Terminal foreground and background colors.

module Xterm : sig ... end

Xterm-compatible terminal query functions.