Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorSyntax ¶ added in v0.7.1
func ColorSyntax(line []rune, env lang.Environment) string
ColorSyntax returns an ANSI-colored version of the input for Clojure syntax highlighting.
func IsTerminal ¶ added in v0.7.4
func IsTerminal() bool
IsTerminal reports whether standard input accepts terminal ioctls.
Types ¶
type EvalFunc ¶ added in v0.6.5
EvalFunc is the signature for eval functions passed to readEvalPrint. CLI wraps evalSafe with signal handling; WASM uses evalSafe directly.
type Option ¶
type Option func(*options)
Option is a functional option for the REPL.
func WithEnvironment ¶
func WithEnvironment(env lang.Environment) Option
WithEnvironment sets the execution environment for the REPL.
func WithHistoryFile ¶ added in v0.6.5
WithHistoryFile sets the history file path and format. Format is "jline" for JLine format (Babashka/Leiningen), or empty for default JSON.
func WithNREPLClient ¶ added in v0.6.5
WithNREPLClient configures the REPL to send code to a remote nREPL server instead of evaluating locally.
func WithShareBaseURL ¶ added in v0.7.8
WithShareBaseURL sets the URL used when sharing REPL expressions.