chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I use arrows in csi?


From: Oskar Werner
Subject: Re: How can I use arrows in csi?
Date: Sun, 13 Aug 2023 15:55:19 +0200

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-siiky@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

[Prev in Thread] Current Thread [Next in Thread]