Hello again,
> I'll try to reproduce the issue with Ubuntu 18.04 in a Docker container
> or something.
Turns out that for some forsaken reason Ubuntu does neither provide a
`readline.pc` nor uses a reasonable path for headers and libraries.
There are two ways of working around this, one is
Updates:
1. breadline installed out of the box, no extra effort required, on SLES11
at work.
2. breadline did exactly what I expected when I added (repl) to the code in
the given csirc example and put it in my program.
3. ^R, history saving and all the other powerful features of readline all
seem
Hello Matt,
> 4. Code completion works!! Maybe it is a bit much to ask but it'd be useful
> if completion rolled over from internal symbols to files. (*)
Fun fact: The default readline completer uses file names. If you change
it to something else you no longer get file names. Since the example
For linenoise I was not able to get saving history to work.
I'm having trouble getting breadline to install on Ubuntu on this old
laptop. I have libreadline-dev installed but when I do chicken-install
breadline I get:
matt@matt-HP-EliteBook-6930p:~$ chicken-install breadline
building breadline
Hello Matt,
> I've read the docs on linenoise and breadline but I'm not seeing how to get
> a useful editable repl.
>
> Any pointers or suggestions would be appreciated.
I've developed breadline. Its wiki page has an examples section which
shows how to create a custom REPL for programs and
Hi Daniel, that is a good suggestion. rlwrap it is for today. Still, it
would be nice to have something that I can build into my apps as I did for
Chicken 4. Thanks.
On Thu, Jan 30, 2020 at 11:29 AM Daniel Ortmann
wrote:
> How about: rlwrap csi
>
> It has been good to me, saving the history
How about: rlwrap csi
It has been good to me, saving the history into ~/.csi_history
On 1/30/20 12:01 PM, Matt Welland wrote:
Line editing and saving history make using a repl much more productive
for me. With chicken 4 I was able to get a useful repl with something
like this sequence of
Line editing and saving history make using a repl much more productive for
me. With chicken 4 I was able to get a useful repl with something like this
sequence of calls:
(import extras) ;; might not be needed?
(import readline)
(import apropos)
;; my imports here ...
(install-history-file