struct
TermBuf::WidthProbe::Result
- TermBuf::WidthProbe::Result
- Struct
- Value
- Object
Overview
Everything the probe learned.
Defined in:
termbuf/caps/width_probe.crConstructors
Instance Method Summary
-
#answered : Bool
Whether the terminal answered at all.
- #clone
- #copy_with(policy _policy = @policy, readings _readings = @readings, input _input = @input, answered _answered = @answered)
-
#disagreements : Array(Reading)
Samples the resulting policy still measures differently from the terminal.
-
#input : Bytes
Keystrokes that arrived while the probe was running.
- #policy : Unicode::WidthPolicy
- #readings : Array(Reading)
Constructor Detail
def self.new(policy : Unicode::WidthPolicy, readings : Array(Reading), input : Bytes, answered : Bool)
#
Instance Method Detail
def answered : Bool
#
Whether the terminal answered at all. When it did not, policy is whatever was passed in.
def copy_with(policy _policy = @policy, readings _readings = @readings, input _input = @input, answered _answered = @answered)
#
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.