package linenoise

  1. Overview
  2. Docs
Simple readline like functionality

Install

Dune Dependency

Authors

Maintainers

Sources

v0.9.0.tar.gz
sha256=dacc2f1be2ad819c3737d4ca4f06e5258770bbddfb1277848ea4780b40506b79
md5=90fd86ede3d31cee3f6380f5b35c9199

Description

These are self contained OCaml bindings to linenoise, no system libraries needed at all.

Here's the simplest program:

let rec user_input prompt cb = match LNoise.linenoise prompt with | None -> () | Some v -> cb v; user_input prompt cb

let () = (fun from_user -> Printf.sprintf "Got: %s" from_user |> print_endline) |> user_input "test_program> "

and compile with: $ ocamlfind ocamlopt ex.ml -package linenoise -linkpkg -o T

Published: 10 Mar 2016

Dependencies (3)

  1. ocamlfind build
  2. oasis build & >= "0.4"
  3. ocaml

Dev Dependencies

None

Used by (6)

  1. alba >= "0.4.1"
  2. asli
  3. beluga = "1.0"
  4. links >= "0.7"
  5. ocamline >= "1.2"
  6. ogen < "0.1.4"

Conflicts

None

OCaml

Innovation. Community. Security.