package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Manages the console

The console is a system than can report messages and a status to the user. It is usually the terminal the application is connected to, however it could be something else. This module allow to set a global backend for the application as well as composing backends.

module Backend : sig ... end

The main backend for the application

include Backend.S
val print_user_message : User_message.t -> unit

Format and print a user message to the console

val set_status_line : User_message.Style.t Pp.t option -> unit

Change the status line

val print_if_no_status_line : User_message.Style.t Pp.t -> unit

Print a message if the backend does not display the status line. This is needed so that the important status changes show up even when a dumb terminal backend is used.

val reset : unit -> unit

Reset the log output

val print : User_message.Style.t Pp.t list -> unit

print paragraphs is a short-hand for:

print_user_message (User_message.make paragraphs) 
module Status_line : sig ... end

Status line management

OCaml

Innovation. Community. Security.