Use the flag to -fenter rlwrap to activate the tab. This will be a static termination, although based on a static list of characters in the file you define. If you need dynamic termination (based on any character defined in the current REPL), you should try Emacs + SLIME or the equivalent.
, . , Clojure . ( clojure -contrib; clojure.contrib.io duck-streams .)
user> (use 'clojure.contrib.io)
nil
user> (with-out-writer "/home/user/.clj-tabcompletion"
(doseq [[sym _] (ns-publics 'clojure.core)]
(println sym)))
nil
:
$ rlwrap -f ~/.clj-tabcompletion java -jar clojure.jar
Clojure 1.2.0-master-SNAPSHOT
user=> def<TAB>
definline defmacro defmethod defmulti defn defonce defprotocol defstruct deftype
user=> def
, , , . . OS X , , . Konsole Linux, rlwrap:
user=> (println "àèìòùáéíóúäëïöüâêîôûãõñ")
àèìòùáéíóúäëïöüâêîôûãõñ
nil
user=> (println "牛が牧場で草を食べている。")
牛が牧場で草を食べている。
nil