caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin Riener <martin@derivation.org>
To: Helmut Brandl <helmut.brandl@gmx.net>, caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Gnu readline functionality in ocaml?
Date: Tue, 2 Jul 2019 18:51:18 +0200	[thread overview]
Message-ID: <3dc7d021-2ca7-be3d-ae5d-716b455389ba@derivation.org> (raw)
In-Reply-To: <7A09D0AA-1285-45CF-9687-B2BF8B1CA021@gmx.net>


[-- Attachment #1.1: Type: text/plain, Size: 576 bytes --]

Hello Helmut,

You are probably looking for utop ( https://opam.ocaml.org/packages/utop/ )
which also has autocompletion and other nice features. Alternatively, you can
use rlwrap ( https://linux.die.net/man/1/rlwrap ) to wrap any non-readline
program into readline.

cheers,
Martin

On 7/2/19 6:48 PM, Helmut Brandl wrote:
> Hello list,
> 
> is there a possibility to write an interactive console program in ocaml using a functionality like gnu’s readline i.e. allowing the user to press e.g. arrow up to get the previous line?
> 
> Regards
> Helmut
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2019-07-02 16:52 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 [this message]
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

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=3dc7d021-2ca7-be3d-ae5d-716b455389ba@derivation.org \
    --to=martin@derivation.org \
    --cc=caml-list@inria.fr \
    --cc=helmut.brandl@gmx.net \
    /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).