<div dir="ltr"><div>My understanding of the licensing issues is that if the code works with both "libeditline" and "libreadline" then it isn't a derived work of readline, and therefore could be licensed under the LGPL, like the rest of Racket. Furthermore, turning use of "libeditline" on by default wouldn't be linking to any GPL code, meaning that we could do that by default.<br><br></div>I think we should split up the `readline` collection into `readline` and `readline/base` which would be what's compatible with editline, and have xrepl in a `readline/base` mode on by default.<br><br>Sam<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 24, 2014 at 5:57 PM, Leif Andersen <span dir="ltr"><<a href="mailto:leif@leifandersen.net" target="_blank">leif@leifandersen.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span>Hello,<br><br>When a user first starts the racket repl, it doesn't 
do line editing due to licensing issues. For example, it would be nice 
if the default editor would give the previous line if you hit up arrow, 
rather than writing "^[[A".<br><br></span><div>I have now pointed out 
xrepl to several users, and every time they always ask me why it's not 
the default repl. Apparently the problem is that xrepl uses GNU 
Readline, which is GPL. However, Asumu found that if we replace 
requiring readline with BSD's libedit (not libeditline), everything 
works fine due to libedit's readline compatibility. It doesn't have all 
of the features of readline, but it does have some of the biggest ones 
(such as being able to use arrow keys)<br><br></div>What do you all think of having `(require editline)` that works for 
the default repl, so that it gets line editing features. This would 
allow us to also keep `(require readline)` as before, maintaining 
backwards compatibility.<div><div><img><br>If
 we do do this, this leads to the question of distribution. Would we 
want to include libedit inside Racket distributions, or should we just 
link to whatever the user has on their system?</div></div><div><div><img></div></div><span class="HOEnZb"><font color="#888888"><div><div><div dir="ltr"><div><br></div>~Leif Andersen</div></div></div>
</font></span></div>
<br>_________________________<br>
  Racket Developers list:<br>
  <a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/dev</a><br>
<br></blockquote></div><br></div>