module Tput::Input

Included Modules

Direct including types

Defined in:

tput/input.cr

Constant Summary

Log = ::Log.for((self.name.gsub("::", '.')).underscore)

Instance Method Summary

Instance Method Detail

def disable_bracketed_paste : Nil #

Disables bracketed paste (DEC private mode 2004).


[View source]
def disable_in_band_resize : Nil #

Disables in-band resize notifications (DEC private mode 2048).


[View source]
def enable_bracketed_paste : Nil #

Enables bracketed paste (DEC private mode 2004). Pasted text then arrives as the paste argument of #listen instead of individual key presses. Harmless on unsupporting terminals.


[View source]
def enable_in_band_resize : Nil #

Enables in-band resize notifications (DEC private mode 2048). Resize reports then arrive as the resize argument of #listen (in addition to any SIGWINCH). Harmless on unsupporting terminals.


[View source]
def listen(& : InputEvent -> Nil) #

[View source]
def next_char(timeout : Bool = false, &) #

[View source]
def with_raw_input(&) #

Enables raw (unbuffered, non-cooked) input for the duration of the block.


[View source]
def with_sync_output(&) #

Enables synced (unbuffered) output for the duration of the block.


[View source]