enum Tput::KeyboardProtocol

Overview

Enhanced keyboard protocols, ordered least → most capable (mirroring GraphicsProtocol). Legacy is the always-available baseline — the xterm-style encodings Tput::Key parses unconditionally — and the others re-encode keyboard input more richly, but only when the terminal supports them (discovered by Tput#probe!, see Tput::Features).

Defined in:

tput/keyboard.cr

Enum Members

Legacy = 0
ModifyOtherKeys = 1
Kitty = 2

Instance Method Summary

Instance Method Detail

def kitty? #

Returns true if this enum value equals Kitty


[View source]
def legacy? #

Returns true if this enum value equals Legacy


[View source]
def modify_other_keys? #

Returns true if this enum value equals ModifyOtherKeys


[View source]