package ocamline

  1. Overview
  2. Docs
Command line interface for user input

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.tar.gz
md5=08fbed1f2f53acfbb2cdf08e8e876d44
sha512=045a9d427cafda3560d5af955c6e5866e5999185c9940adc0566a87a217ef922ebd24d5088749a179b3b282023907df6085feda063bd918c37fe88f1cb50dbfe

doc/ocamline/Ocamline/index.html

Module OcamlineSource

Sourceval read : ?trim_delim:bool -> ?brackets:(char * char) list -> ?prompt:string -> ?strings:char list -> string -> string

read ?trim_delim ?brackets ?prompt ?strings delim will read input from stdin until a new line or delim string is encountered. Occurrences of delim not at the end of the line will not stop the input process. If delim is an empty string, it will return on new lines.

trim_delim: Whether or not to remove the line delimiter from the return value.

brackets: Any characters that once opened must be closed before the line is accepted.

prompt: Customizes the prompt displayed to the user.

strings: If brackets are in strings, they won't have to be closed.

delim: The string that, when found, halts scanning and returns the input.

OCaml

Innovation. Community. Security.