class

Hsh::REPL

Inherits Reply::Reader < Reference < Object

Constructors

Instance methods

auto_complete(name_filter : String, expr : String) : Tuple(String, Array(String))

Override to integrate auto-completion.

current_word is picked following word_delimiters. It expects to return Tuple with:

  • a title : String
  • the auto-completion results : Array(String)

default: {"", [] of String}

Source
highlight(expr : String) : String

Override to enable expression highlighting.

default: uncolored expression

Source
history_file

Override to indicate the Path|String|IO where the history is saved. If nil, the history is not persistent.

default: nil

Source
prompt(io : IO, lno : Int32, color : Bool) : Nil

Override to customize the prompt.

Toggle the colorization following color.

default: $:001>

Source