Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: