package ocamline

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0.tar.gz
md5=5a9f82de288be5501f4f5023edaaad8c
sha512=88a8bdee3b55ba4bb99b7ea583f8d764e2c00c1b394093449714b0ebe840a453209d5b616e8e7773cd7c86405523bae364b8c9a9650814b4941005820b6fee6f

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.