caml-list - the Caml user's mailing list
 help / color / mirror / 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	[thread overview]
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	other threads:[~2019-07-04  8:50 UTC|newest]

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

Reply instructions:

You may reply publicly 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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).