set-repl-prompt(clojure.contrib.repl-ln)

Sets the repl prompt. Include the following codes in the prompt to make the corresponding dynamic values part of it:

%S - repl serial number %T - thread id %D - nesting depth in this thread %L - input line number %N - namespace name

With no arguments, resets the repl pompt to its default: "%S:%L %N=> "

; clojure/contrib/repl_ln.clj:180
(defn set-repl-prompt
  ([]
     (set-repl-prompt (+info-defaults+ :prompt-fmt)))
  ([prompt-fmt]
     (assoc! *info* :prompt-fmt prompt-fmt)
     (loop [[[code fmt] & more] (seq +prompt-formats+)
            prompt-fmt prompt-fmt]
       (if code
         (recur more (.replace prompt-fmt code fmt))
         (assoc! *private* :prompt-fmt prompt-fmt)))
     nil))

Copyright (c) Rich Hickey. All rights reserved.

The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.