class Keimeno::Menu

Included Modules

Defined in:

keimeno/menu.cr

Constructors

Instance Method Summary

Instance methods inherited from module Keimeno::TextInput

character_key(keystroke) : Nil character_key, input_text input_text, key_backspace : Nil key_backspace, set_input_text(data : String) : Nil set_input_text, show_input show_input, text_buffer text_buffer

Instance methods inherited from class Keimeno::Base

before_display before_display, character_key(keystroke) character_key, cleanup cleanup, clear clear, clear_line clear_line, clear_screen clear_screen, decode_control_character : Keystroke decode_control_character, decode_function_character : Keystroke decode_function_character, display display, display_loop display_loop, finish! finish!, finished? finished?, full_screen : Bool full_screen, full_screen=(full_screen : Bool) full_screen=, full_screen? full_screen?, function_key(keystroke) function_key, hide_cursor hide_cursor, input_display_loop input_display_loop, key_backspace key_backspace, key_ctrl_a key_ctrl_a, key_ctrl_b key_ctrl_b, key_ctrl_c key_ctrl_c, key_ctrl_d key_ctrl_d, key_ctrl_e key_ctrl_e, key_ctrl_f key_ctrl_f, key_ctrl_g key_ctrl_g, key_ctrl_h key_ctrl_h, key_ctrl_i key_ctrl_i, key_ctrl_j key_ctrl_j, key_ctrl_k key_ctrl_k, key_ctrl_l key_ctrl_l, key_ctrl_n key_ctrl_n, key_ctrl_o key_ctrl_o, key_ctrl_p key_ctrl_p, key_ctrl_q key_ctrl_q, key_ctrl_r key_ctrl_r, key_ctrl_s key_ctrl_s, key_ctrl_t key_ctrl_t, key_ctrl_u key_ctrl_u, key_ctrl_v key_ctrl_v, key_ctrl_w key_ctrl_w, key_ctrl_x key_ctrl_x, key_ctrl_y key_ctrl_y, key_ctrl_z key_ctrl_z, key_delete key_delete, key_down_arrow key_down_arrow, key_enter key_enter, key_escape key_escape, key_left_arrow key_left_arrow, key_pressed(keystroke : Keystroke) key_pressed, key_right_arrow key_right_arrow, key_up_arrow key_up_arrow, maintain_saved_cursor(&) maintain_saved_cursor, process_input_char : Keystroke process_input_char, read_buffer : Slice(UInt8) read_buffer, read_string : String read_string, repaint repaint, request_cursor_position request_cursor_position, return_value return_value, run run, set_cursor_position(row = 1, col = 1) set_cursor_position, show_cursor show_cursor, show_input show_input, wait_for_input wait_for_input

Constructor Detail

def self.new(heading : String, options : Array(String)) #

[View source]

Instance Method Detail

def before_display #

[View source]
def build_matches #

[View source]
def character_key(keystroke) : Nil #

[View source]
def choice : String | Nil #

[View source]
def cursor_active? #

[View source]
def decrement_cursor #

[View source]
def display #

[View source]
def formatted_options #

[View source]
def heading : String #

[View source]
def increment_cursor #

[View source]
def key_down_arrow #

[View source]
def key_enter #

[View source]
def key_escape #

[View source]
def key_up_arrow #

[View source]
def match?(o : String) : Bool #

[View source]
def matches : Array(String) #

[View source]
def multiple_matches? #

[View source]
def options : Array(String) #

[View source]
def return_value #

[View source]