struct

TermBuf::WidthProbe::Sample

Inherits Struct < Value < Object

One thing to measure, and the rule it settles.

Chosen to discriminate rather than to enumerate: there is no point asking about a hundred emoji when every terminal treats them by rule.

Constructors

new(text : String, rule : String | Nil, enabled : Int32, disabled : Int32, description : String)
Source

Instance methods

clone
Source
copy_with(text _text = @text, rule _rule = @rule, enabled _enabled = @enabled, disabled _disabled = @disabled, description _description = @description)
Source
description

For diagnostics.

disabled
enabled

What the rule being on predicts, and what being off predicts.

rule

The rule this sample settles, by the name WidthPolicy uses, or nil for one that only confirms the terminal is answering sensibly.

text

What to print.