class Keimeno::Prompt

Included Modules

Defined in:

keimeno/prompt.cr

Constructors

Instance Method Summary

Instance methods inherited from module Keimeno::TextInput

character_key(keystroke) : Nil character_key, input_text input_text, key_alt_b key_alt_b, key_alt_d key_alt_d, key_alt_f key_alt_f, key_backspace : Nil key_backspace, key_ctrl_a key_ctrl_a, key_ctrl_b key_ctrl_b, key_ctrl_e key_ctrl_e, key_ctrl_f key_ctrl_f, key_ctrl_k key_ctrl_k, key_ctrl_u key_ctrl_u, key_ctrl_w : Nil key_ctrl_w, key_left_arrow key_left_arrow, key_right_arrow key_right_arrow, 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, bump_cursor(row = 0, col = 0) bump_cursor, 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_alt_0 key_alt_0, key_alt_1 key_alt_1, key_alt_2 key_alt_2, key_alt_3 key_alt_3, key_alt_4 key_alt_4, key_alt_5 key_alt_5, key_alt_6 key_alt_6, key_alt_7 key_alt_7, key_alt_8 key_alt_8, key_alt_9 key_alt_9, key_alt_a key_alt_a, key_alt_b key_alt_b, key_alt_c key_alt_c, key_alt_comma key_alt_comma, key_alt_d key_alt_d, key_alt_double_quote key_alt_double_quote, key_alt_e key_alt_e, key_alt_enter key_alt_enter, key_alt_f key_alt_f, key_alt_g key_alt_g, key_alt_greater_than key_alt_greater_than, key_alt_h key_alt_h, key_alt_i key_alt_i, key_alt_j key_alt_j, key_alt_k key_alt_k, key_alt_l key_alt_l, key_alt_left_curly_bracket key_alt_left_curly_bracket, key_alt_left_square_bracket key_alt_left_square_bracket, key_alt_less_than key_alt_less_than, key_alt_m key_alt_m, key_alt_n key_alt_n, key_alt_o key_alt_o, key_alt_p key_alt_p, key_alt_period key_alt_period, key_alt_q key_alt_q, key_alt_quote key_alt_quote, key_alt_r key_alt_r, key_alt_right_curly_bracket key_alt_right_curly_bracket, key_alt_right_square_bracket key_alt_right_square_bracket, key_alt_s key_alt_s, key_alt_space key_alt_space, key_alt_t key_alt_t, key_alt_tab key_alt_tab, key_alt_tilde key_alt_tilde, key_alt_u key_alt_u, key_alt_v key_alt_v, key_alt_w key_alt_w, key_alt_x key_alt_x, key_alt_y key_alt_y, key_alt_z key_alt_z, 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(question : String, character_filter : Regex = /[A-Za-z0-9._!?@#$%^&*()-]|\s/) #

[View source]

Instance Method Detail

def character_filter : Regex #

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

[View source]
def display #

[View source]
def key_enter #

[View source]
def key_escape #

[View source]
def question : String #

[View source]
def return_value #

[View source]