caml-list - the Caml user's mailing list
 help / Atom feed
From: Jeremie Dimino <jdimino@janestreet.com>
To: Francois Berenger <mlists@ligand.eu>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Gnu readline functionality in ocaml?
Date: Thu, 4 Jul 2019 09:50:08 +0100
Message-ID: <CANhEzE7j1BuHgbBTEHda0AnhCZOajkvaD58kp8mz1w2908hN-w@mail.gmail.com> (raw)
In-Reply-To: <0ae06dd8f9be93619e025d5058e55420@ligand.eu>

More precisely, zed implements the part of text edition that is
completely independent of the actual user interface. Lambda-term on
the other hand is a comprehensive terminal library that among other
things relies on zed to provide readline-like functionality and text
edition widgets by "connecting" zed to the terminal operations. But
for instance, it would be straightforward to create a simple text
editor using zed and notty.

On Thu, Jul 4, 2019 at 2:05 AM Francois Berenger <mlists@ligand.eu> wrote:
>
> On 03/07/2019 18:41, SP wrote:
> > I had a look for you on opam.ocaml.org.
> >
> > I found [linenoise][1]. Also looked at [utop's code][2] and it seems
> > to use [lambda-term][3][4].
>
> lambda-term uses zed, which from the opam description looks like
> the library providing the readline-like functionality.
>
> https://github.com/ocaml-community/zed
>
> > [1]: https://opam.ocaml.org/packages/linenoise
> > [2]:
> > https://github.com/ocaml-community/utop/blob/master/src/lib/uTop_complete.ml
> > [3]: https://opam.ocaml.org/packages/lambda-term
> > [4]:
> > https://github.com/ocaml-community/lambda-term/blob/master/src/lTerm_read_line.mli
> >
> >
> > Hope this helps.



-- 
Jeremie

      reply index

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-02 16:48 Helmut Brandl
2019-07-02 16:52 ` Martin Riener
2019-07-02 17:01   ` Simon Cruanes
2019-07-02 17:27     ` Helmut Brandl
2019-07-02 18:13 ` rixed
2019-07-03  9:42 ` SP
2019-07-04  1:05   ` Francois Berenger
2019-07-04  8:50     ` Jeremie Dimino [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANhEzE7j1BuHgbBTEHda0AnhCZOajkvaD58kp8mz1w2908hN-w@mail.gmail.com \
    --to=jdimino@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=mlists@ligand.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox