English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Readline support in the toplevel loop
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-05-29 (09:41)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Readline support in the toplevel loop
> Is it possible to have readline support in the toplevel loop of O'Caml
> so that you can press the up key to recall something you already wrote,
> and go back to edit other things.  Is it possible?

I considered it, but there are several issues.  One of them is that
readline is GPL, thus linking it with the Caml toplevel could cause
license incompatibility issues.  Another issue is portability to
platfroms that do not have readline: the line reading and prompt
handling logic is quite different between readline and just reading
from standard input.

All in all, I believe using an external line editor such as Ledit,
CLE, FEP, ILE, etc, is a lot simpler and more flexible.

- Xavier Leroy

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners