Re: How can I use arrows in csi?

2023-08-13 Thread Thomas Teixeira via
On 23/08/13 08:46PM, Kristian Lein-Mathisen wrote:
> Hi Oskar,
> 
> As an alternative to getting readline support into the chicken runtire, you
> can use rlwrap. It adds readline support to any process.> 
> > rlwrap csi
Wow, that's a incredible tool! Thank you a lot for this tip !


signature.asc
Description: PGP signature


Re: How can I use arrows in csi?

2023-08-13 Thread Kristian Lein-Mathisen
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  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 
> 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! 1)
>>(completer-word-break-characters-set! "\"\'`;|(")
>>(completer-set! scheme-completer)
>>(basic-quote-characters-set! "\"|")
>>(variable-bind! "blink-matching-paren" "on")
>>(paren-blink-timeout-set! 20)
>>(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/
>>
>>
>>


Re: How can I use arrows in csi?

2023-08-13 Thread Oskar Werner
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 
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! 1)
>(completer-word-break-characters-set! "\"\'`;|(")
>(completer-set! scheme-completer)
>(basic-quote-characters-set! "\"|")
>(variable-bind! "blink-matching-paren" "on")
>(paren-blink-timeout-set! 20)
>(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/
>
>
>


Re: How can I use arrows in csi?

2023-08-13 Thread siiky

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! 1)
  (completer-word-break-characters-set! "\"\'`;|(")
  (completer-set! scheme-completer)
  (basic-quote-characters-set! "\"|")
  (variable-bind! "blink-matching-paren" "on")
  (paren-blink-timeout-set! 20)
  (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/





Re: How can I use arrows in csi?

2023-08-13 Thread Shawn Wagner
Install the breadline egg and set up your ~/.csirc per this example:
https://depp.brause.cc/breadline/examples/.csirc

On Sun, Aug 13, 2023, 5:42 AM Oskar Werner  wrote:

> Hi, when I want to use arrows to move back, my terminal instead produces
> ^[[D symbols, how can I get them to work? I installed chicken from arch
> extra repo and I tested this behavior using both fish shell and bash shell.
> Also everything works when I'm using python repl, so this problem with
> chicken-csi.
>


How can I use arrows in csi?

2023-08-13 Thread Oskar Werner
Hi, when I want to use arrows to move back, my terminal instead produces
^[[D symbols, how can I get them to work? I installed chicken from arch
extra repo and I tested this behavior using both fish shell and bash shell.
Also everything works when I'm using python repl, so this problem with
chicken-csi.