class CryPrompt::Input

Overview

class for getting inputs from the user

Defined in:

input.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.read_char #

[View source]
def self.tokenize(input : String) : Array(String) #

A raw read may contain several printable characters (especially a paste) or one ANSI escape sequence. Split it into editor events so a trailing Tab/Return is never inserted as ordinary text.


[View source]

Instance Method Detail

def read_char #

Reads a single character in and returns it as a string.


[View source]