package luv

  1. Overview
  2. Docs
Binding to libuv: cross-platform asynchronous I/O

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.7.tar.gz
sha256=c0085224ae2025a2aae9c69f542450974bdbfea592fed6c3d4df361f73e15672
md5=ca1a2de9a100a8d2f2d9fcf2e1b5bd8c

doc/luv/Luv/TTY/index.html

Module Luv.TTYSource

Consoles.

See uv_tty_t — TTY handle in libuv.

Sourcetype t = [ `TTY ] Stream.t

Binds http://docs.libuv.org/en/v1.x/tty.html#c.uv_tty_t.

Note that values of this type can also be used with functions in:

In particular, see Luv.Handle.close, Luv.Stream.read_start, and Luv.Stream.write.

Sourceval init : ?loop:Loop.t -> File.t -> (t, Error.t) Result.result

Allocates and initializes a TTY handle.

Binds uv_tty_init.

Sourcemodule Mode : sig ... end
Sourceval set_mode : t -> Mode.t -> (unit, Error.t) Result.result

Sets the TTY's mode.

Binds uv_tty_set_mode.

Sourceval reset_mode : unit -> (unit, Error.t) Result.result

Resets the TTY's mode.

Binds uv_tty_reset_mode.

Sourceval get_winsize : t -> (int * int, Error.t) Result.result

Retrieves the current window size.

Binds uv_tty_get_winsize.

Sourcemodule Vterm_state : sig ... end
Sourceval set_vterm_state : Vterm_state.t -> unit

Binds uv_tty_set_vterm_state.

Requires libuv 1.33.0.

Feature check: Luv.Require.(has tty_vterm_state)

Sourceval get_vterm_state : unit -> (Vterm_state.t, Error.t) Result.result

Binds uv_tty_get_vterm_state.

Requires libuv 1.33.0.

Feature check: Luv.Require.(has tty_vterm_state)

OCaml

Innovation. Community. Security.