cl-repl icon indicating copy to clipboard operation
cl-repl copied to clipboard

Add History Support

Open FOSSilizedDaemon opened this issue 3 years ago • 1 comments

Is there any chance that history support could get added?

FOSSilizedDaemon avatar Sep 18 '22 00:09 FOSSilizedDaemon

It sounds possible, because the binding is now available in cl-readline (it was missing when cl-repl started, IIRC).

  ;; read history before startup.
  (rl:read-history "/tmp/readline_history")

(rl:readline :prompt (prompt)
                               :add-history t)

  (rl:write-history "/tmp/readline_history")

possibly, with one or two global variables that control if we enable the read/write history.

vindarel avatar Sep 19 '22 10:09 vindarel