package chamo

  1. Overview
  2. Docs

This class defines an output to show command executions (typically compilation commands) in a GSourceView2.source_view widget.

  • parameter on_destroy

    can be used to given a function to execute when the widget is destroyed.

val mutable label : string
method box : Stk.Widget.widget
method contents : string
method insert : string -> unit
method label : string
method name : string
method on_destroy : unit
method scrollbox : Stk.Bin.scrollbox
method view : Stk.Textview.textview
method reset : unit

Clear the source_buffer.

method run : string -> ?reset:bool -> (int -> unit) -> unit Lwt.t

run command f runs the given command and display its output (both stdout and stderr) in the source_buffer. The use of a mutex ensures that two command executions don't output to the buffer at the same time (i.e. the second command waits for the end of the first one).

  • parameter reset

    indicate whether to clear the buffer before executing the command. Default is false.

method set_label : string -> unit
OCaml

Innovation. Community. Security.