API for repl-ln - clojure-contrib v1.2 (stable)

by Stephen C. Gilardi

clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has a set of separate libraries for each unit of functionality. The libraries are in the Clojure GitHub organization at https://github.com/clojure. API documentation of the libraries can be found at http://clojure.github.io.

If you're looking for a specific function or namespace from the old clojure-contrib, see "Where Did Clojure.Contrib Go".


Full namespace name: clojure.contrib.repl-ln

Overview

A repl with that provides support for lines and line numbers in the
input stream.

Public Variables and Functions



print-repl-info

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (print-repl-info)
Prints info about the current repl
Source


repl

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (repl & options)
A repl that supports line numbers. For definitions and evaluations made
at the repl, the repl-name and line number will be reported as the
origin. Use set-repl-name and set-repl-prompt to customize the repl name
and prompt. This repl supports all of the keyword arguments documented
for clojure.main/repl with the following change and additions:

     - :prompt has a new default
       default: #(clojure.core/print (repl-prompt))

     - :name-fmt, Name format string
       default: the name-fmt of the parent repl, or "repl-%S"

     - :prompt-fmt, Prompt format string
       default: the prompt-fmt of the parent repl, or "%S:%L %N=> "
Source


repl-info

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (repl-info)
Returns a map of info about the current repl
Source


repl-prompt

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (repl-prompt)
Returns the current repl prompt based on this repl's prompt-fmt
Source


set-repl-name

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (set-repl-name)
       (set-repl-name name-fmt)
Sets the repl name format to the string name-fmt. Include the following
codes in the name to make the corresponding dynamic values part of it:

  %S - repl serial number
  %T - thread id
  %D - nesting depth in this thread

With no arguments, resets the repl name to its default: "repl-%S"
Source


set-repl-prompt

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (set-repl-prompt)
       (set-repl-prompt prompt-fmt)
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=> "
Source


stream-repl

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (stream-repl & options)
Repl entry point that provides convenient overriding of input, output,
and err streams via sequential keyword-value pairs. Default values
for :in, :out, and :err are streams associated with System/in,
System/out, and System/err using UTF-8 encoding. Also supports all the
options provided by clojure.contrib.repl-ln/repl.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.