struct TermBuf::WidthProbe::Sample

Overview

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.

Defined in:

termbuf/caps/width_probe.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, rule : String | Nil, enabled : Int32, disabled : Int32, description : String) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(text _text = @text, rule _rule = @rule, enabled _enabled = @enabled, disabled _disabled = @disabled, description _description = @description) #

[View source]
def description : String #

For diagnostics.


def disabled : Int32 #

def enabled : Int32 #

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


def rule : String | Nil #

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


def text : String #

What to print.