struct TermBuf::Events::Key

Overview

A key press. bytes is what the terminal sent to say so, which matters for the sequences the decoder could not name and for anything an application would rather interpret itself.

Defined in:

termbuf/terminal/event.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(key : TermBuf::Key, bytes : Bytes) #

[View source]

Instance Method Detail

def bytes : Bytes #

def clone #

[View source]
def copy_with(key _key = @key, bytes _bytes = @bytes) #

[View source]
def key : TermBuf::Key #