Readline

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)Source

def bind_key(c : Char, &f : KeyBindingProc)Source

def doneSource

def done=(val : Bool)Source

def line_bufferSource

def pointSource

def readline(prompt = "", add_history = false)Source

def unbind_key(c : Char)Source

© 2012–2017 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.22.0/Readline.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部