struct TermBuf::WidthProbe::Result

Overview

Everything the probe learned.

Defined in:

termbuf/caps/width_probe.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(policy : Unicode::WidthPolicy, readings : Array(Reading), input : Bytes, answered : Bool) #

[View source]

Instance Method Detail

def answered : Bool #

Whether the terminal answered at all. When it did not, policy is whatever was passed in.


def clone #

[View source]
def copy_with(policy _policy = @policy, readings _readings = @readings, input _input = @input, answered _answered = @answered) #

[View source]
def disagreements : Array(Reading) #

Samples the resulting policy still measures differently from the terminal. Terminals reach conclusions this design has no flag for, and naming what is left over beats modelling it wrong.


[View source]
def input : Bytes #

Keystrokes that arrived while the probe was running.


def policy : Unicode::WidthPolicy #

def readings : Array(Reading) #