class Velvet::Prompts::Menu

Defined in:

velvet/prompts/menu.cr

Constant Summary

CTRL_C = "\u0003"
DOWN = "\e[B"
ESC = "\e"
UP = "\e[A"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(label : String, choices : Array(String), status_text : String | Nil = nil) #

[View source]

Class Method Detail

def self.bottom_footer_line(text : String, cols : Int32 = terminal_columns) : String #

[View source]
def self.fit_footer_text(text : String, cols : Int32, prefix_width : Int32 = 2) : String #

[View source]
def self.footer_line(text : String) : String #

[View source]
def self.render_bottom_statusbar(text : String) #

[View source]
def self.terminal_columns : Int32 #

[View source]

Instance Method Detail

def run : String #

[View source]