|
From: | Jean Abou Samra |
Subject: | Re: readline for guile |
Date: | Fri, 16 Apr 2021 18:45:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
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
Hello,
"There" here refers to the file called .guile (note the leading
dot). You should create it if not already existent, placing it in
your home directory, and write exactly this in it:
(use-modules (ice-9 readline))
(activate-readline)
[Prev in Thread] | Current Thread | [Next in Thread] |