struct TermBuf::Prober::Result

Overview

What the terminal said, and what arrived while it was saying it.

Defined in:

termbuf/caps/prober.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(capabilities : Capabilities, input : Bytes, answered : Array(Symbol), name : String | Nil, cursor : Tuple(Int32, Int32) | Nil) #

[View source]

Instance Method Detail

def answered : Array(Symbol) #

Which queries came back, for diagnostics.


def capabilities : Capabilities #

def clone #

[View source]
def copy_with(capabilities _capabilities = @capabilities, input _input = @input, answered _answered = @answered, name _name = @name, cursor _cursor = @cursor) #

[View source]
def cursor : Tuple(Int32, Int32) | Nil #

Where the cursor was, which the sentinel reports for free.


def input : Bytes #

Keystrokes that arrived during the probe window.


def name : String | Nil #

What the terminal called itself, if it said.