Re: How to get a useful repl with Chicken 5?

2020-01-31 Thread Vasilij Schneidermann
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

Re: How to get a useful repl with Chicken 5?

2020-01-31 Thread Matt Welland
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

Re: How to get a useful repl with Chicken 5?

2020-01-31 Thread Vasilij Schneidermann
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

Re: How to get a useful repl with Chicken 5?

2020-01-31 Thread Matt Welland
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

Re: How to get a useful repl with Chicken 5?

2020-01-30 Thread Vasilij Schneidermann
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

Re: How to get a useful repl with Chicken 5?

2020-01-30 Thread Matt Welland
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

Re: How to get a useful repl with Chicken 5?

2020-01-30 Thread Daniel Ortmann
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

How to get a useful repl with Chicken 5?

2020-01-30 Thread Matt Welland
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