class Kommando::Interaction::Session
- Kommando::Interaction::Session
- Reference
- Object
Defined in:
kommando/interaction.crConstant Summary
-
CONFIRM =
["Y", "y", "Yes", "yes"] of ::String
-
DENY =
["N", "n", "No", "no"] of ::String
Constructors
Class Method Summary
Instance Method Summary
- #ask(text : String, &block : String -> T | Nil) : T forall T
- #ask(text : String, type : Int32.class | Float32.class) : Int32 | Float32
- #br
- #choose(text : String, options : Array(Tuple(String, String | Nil))) : String
- #choose(text : String, options : Array(String)) : String
- #colorize? : Bool
- #colorized_io(fg : Symbol | Nil = nil, bg : Symbol | Nil = nil, m : Colorize::Mode | Nil = nil, &)
- #confirm(text : String, confirm : Array(String) = CONFIRM, deny : Array(String) = DENY)
- #gets(*args, **options)
- #gets(*args, **options, &)
- #print_input_marker
- #print_question(q : String)
- #read_once(type : Int32.class | Float32.class)
- #read_string_once
- #read_until(&block : String -> T | Nil) : T forall T
- #w(*strs : String | Int32 | Nil, fg : Symbol | Nil = nil, bg : Symbol | Nil = nil, m : Colorize::Mode | Nil = nil)
Constructor Detail
Class Method Detail
Instance Method Detail
def colorized_io(fg : Symbol | Nil = nil, bg : Symbol | Nil = nil, m : Colorize::Mode | Nil = nil, &)
#
def w(*strs : String | Int32 | Nil, fg : Symbol | Nil = nil, bg : Symbol | Nil = nil, m : Colorize::Mode | Nil = nil)
#