pax_global_header 0000666 0000000 0000000 00000000064 14576632421 0014524 g ustar 00root root 0000000 0000000 52 comment=3b9ba3376fca75f127d4e7212467fc3c2c179100 ocaml-linenoise-1.5.1/ 0000775 0000000 0000000 00000000000 14576632421 0014606 5 ustar 00root root 0000000 0000000 ocaml-linenoise-1.5.1/.github/ 0000775 0000000 0000000 00000000000 14576632421 0016146 5 ustar 00root root 0000000 0000000 ocaml-linenoise-1.5.1/.github/CODEOWNERS 0000664 0000000 0000000 00000000012 14576632421 0017532 0 ustar 00root root 0000000 0000000 * @c-cube ocaml-linenoise-1.5.1/.github/workflows/ 0000775 0000000 0000000 00000000000 14576632421 0020203 5 ustar 00root root 0000000 0000000 ocaml-linenoise-1.5.1/.github/workflows/main.yml 0000664 0000000 0000000 00000001363 14576632421 0021655 0 ustar 00root root 0000000 0000000 name: build on: push: branches: - main pull_request: jobs: run: name: build strategy: matrix: os: - ubuntu-latest ocaml-compiler: - 4.03.x - 4.14.x - 5.1.x runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} allow-prerelease-opam: true - run: opam pin -n . - run: opam depext -yt linenoise - run: opam install -t . --deps-only - run: opam exec -- dune build --ignore-promoted-rules - run: opam exec -- dune runtest --ignore-promoted-rules if: ${{ matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == '4.14.x' }} ocaml-linenoise-1.5.1/.gitignore 0000664 0000000 0000000 00000000150 14576632421 0016572 0 ustar 00root root 0000000 0000000 _build *.docdir history.txt *.cmi *.cmt *.cmo *.cma *.cmx *.o T setup.data setup.log *.install .merlin ocaml-linenoise-1.5.1/CHANGES.md 0000664 0000000 0000000 00000000303 14576632421 0016174 0 ustar 00root root 0000000 0000000 # 1.5.1 - fix a deadlock from 1.5 # 1.5 - release runtime lock when calling `lnoise` - fix potential memleaks and use of deprecate parts of the OCaml C API - remove dependency on `result` ocaml-linenoise-1.5.1/Makefile 0000664 0000000 0000000 00000000334 14576632421 0016246 0 ustar 00root root 0000000 0000000 all: build test build: @dune build @install test: @dune runtest --no-buffer --force example: @dune exec examples/show_off.exe clean: @dune clean doc: @dune build @doc .PHONY: all build test example clean doc ocaml-linenoise-1.5.1/README.md 0000664 0000000 0000000 00000004146 14576632421 0016072 0 ustar 00root root 0000000 0000000 Linenoise in OCaml -------------------- [](https://github.com/ocaml-community/ocaml-linenoise/actions/workflows/main.yml) # Benefits 1. BSD licensed. 2. No system dependencies, no need for `readline` on your machine. 3. Related to 2, these bindings are self-contained, the source for `linenoise` is in this repo and compiled all together with the `OCaml`. 4. Written in OCaml + C. 5. Pretty cool hints feature, see the gif. 6. Additional features compared to linenoise, such as history search # Installation It is easy with `opam` ```shell $ opam install linenoise ``` See the pretty documentation [here](https://ocaml-community.github.io/ocaml-linenoise/) # Example code This example is also included in the repo under examples: