module Readline

Extended Modules

Defined in:

readline.cr

Constant Summary

KeyBindingHandler = ->(count : LibReadline::Int, key : LibReadline::Int) do if (handlers = @@key_bind_handlers) && (handlers[key.to_i32]?) res = (handlers[key]).call(count.to_i32, key.to_i32) LibReadline::Int.new(res) else LibReadline::Int.new(1) end end

Instance Method Summary

Instance Method Detail

def autocomplete(&completion_proc : CompletionProc) #

[View source]
def bind_key(c : Char, &f : KeyBindingProc) #

[View source]
def common_prefix_bytesize(strings : Array) #

:nodoc :


[View source]
def done #

[View source]
def done=(val : Bool) #

[View source]
def line_buffer #

[View source]
def point #

[View source]
def readline(prompt = "", add_history = false) #

[View source]
def unbind_key(c : Char) #

[View source]