class

Enkaidu::Console::InputReader

Inherits Reply::Reader < Reference < Object

Constants

DELIMETERS = {{ " \n\t'\"=".chars }}

Constructors

new(label : String, styler : Enkaidu::Console::StyleApplicator)
Source

Instance methods

auto_complete(current_word : String, expression_before : 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(expression : String) : String

Highlight the expression

Source
label
Source
label=(label : String)
Source
prompt(io : IO, line_number : Int32, color : Bool) : Nil

Override to customize the prompt.

Toggle the colorization following color.

default: $:001>

Source