struct
TermBuf::WidthProbe::Sample
- TermBuf::WidthProbe::Sample
- Struct
- Value
- Object
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.crConstructors
Instance Method Summary
- #clone
- #copy_with(text _text = @text, rule _rule = @rule, enabled _enabled = @enabled, disabled _disabled = @disabled, description _description = @description)
-
#description : String
For diagnostics.
- #disabled : Int32
-
#enabled : Int32
What the rule being on predicts, and what being off predicts.
-
#rule : String | Nil
The rule this sample settles, by the name
WidthPolicyuses, ornilfor one that only confirms the terminal is answering sensibly. -
#text : String
What to print.
Constructor Detail
def self.new(text : String, rule : String | Nil, enabled : Int32, disabled : Int32, description : String)
#
Instance Method Detail
def copy_with(text _text = @text, rule _rule = @rule, enabled _enabled = @enabled, disabled _disabled = @disabled, description _description = @description)
#
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.