lilypond-user
[Top][All Lists]
Advanced

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

readline for guile


From: Andrew Culver
Subject: readline for guile
Date: Thu, 15 Apr 2021 12:32:02 +0000

Here is scheme-sandbox.ly that comes with my v2.22 install:

\version "2.16.0"

#(load-user-init)

% This loads the user's .guile file for interactive sessions.
% One typical thing you might want to put there is
% (use-modules (ice-9 readline))
% (activate-readline)
% in order to activate command line editing for interactive sessions.
% You need libreadline support and the respective Guile module to be
% installed for that.  In Debian, for example, this is part of the
% guile-1.8-libs package.  Depending on your system and version, the
% requirements may be different.

#(newline)
#(cond-expand
   (guile-2
     (begin
       (use-modules (system repl repl))
       (start-repl)))
   (else (scm-style-repl)))


The comments say to “put in there” the two commands for readline functionality. 

% (use-modules (ice-9 readline))
% (activate-readline)

I have tried without success.

Where to these two lines go in the script?

Many thanks,

Andrew Culver


reply via email to

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