manuel-serrano / bigloo

a practical Scheme compiler
http://www-sop.inria.fr/indes/fp/Bigloo
Other
133 stars 20 forks source link

Does bigloo support readline? #97

Closed Aster89 closed 1 year ago

Aster89 commented 1 year ago

As an obsessive Vim user, in the command line, I use vi bindings, i.e. I have set editing-mode vi in my ~/.inputrc.

This makes very comforable for me to type and edit command lines, so it would be very nice if I had a chance of doing the same in bigloo REPL.

python interpreter offers something similar (not sure if it's true readline or a reimplemetation), and even ghci does so (but it is pretty broken, though, as ; and , don't really work, to give an example; so I guess it's a reimplementation, rather than a use of the readline library).

How viable it is to add readline support to bigloo?

manuel-serrano commented 1 year ago

It should not be too complicated but is it really useful? The reason why it is not included is because of the availability of tools such as rlwrap. If you are not familiar with that tool, try "rlwrap bigloo". One simple solution could be to use a script such as:

#!/bin/sh
rlwrap bigloo $*

Please, let us know if this advice helps.

Aster89 commented 1 year ago

Thanks, I didn't know of this app. I'll give it a try. I'll let you know if I find it unsatisfactory.