Hi Oskar,

As an alternative to getting readline support into the chicken runtire, you
can use rlwrap. It adds readline support to any process. I like to use it
on things like netcat and csi.

> rlwrap csi

K.

On Sun, Aug 13, 2023, 15:55 Oskar Werner <nsz.werne...@gmail.com> wrote:

> It works, I just installed linenoise and follow instruction from eggref,
> thanks for kind reply. First time using mailing list, its nice to have good
> first impression.
>
> niedz., 13 sie 2023, 14:51 u┼╝ytkownik siiky <github-si...@net-c.cat>
> napisał:
>
>> Hi,
>>
>> csi doesn't doesn't use readline or similar by default. You need to
>> install and configure one of the line-editing eggs (search for readline
>> in the eggs list[0], there 3 eggs as of now). As an example to get you
>> started, I use breadline with this config in ~/.csirc (adapted from the
>> breadline example IIRC):
>>
>>
>> (let ()
>>    (import breadline breadline-scheme-completion)
>>
>>    (history-file (format "~a/.config/chicken/csi_history"
>> (get-environment-variable "HOME")))
>>    (stifle-history! 10000)
>>    (completer-word-break-characters-set! "\"\'`;|(")
>>    (completer-set! scheme-completer)
>>    (basic-quote-characters-set! "\"|")
>>    (variable-bind! "blink-matching-paren" "on")
>>    (paren-blink-timeout-set! 200000)
>>    (current-input-port (make-readline-port)))
>>
>>
>> I used to use linenoise with this config before (don't remember why I
>> switched):
>>
>> (import linenoise)
>> (current-input-port (make-linenoise-port))
>>
>>
>> [0]: https://eggs.call-cc.org/5/
>>
>>
>>

Reply via email to