EmojiWidthProbe class final
Best-effort probe to align emoji cell width with the active terminal.
Some terminals render emoji as 1 cell wide, others as 2. The UV renderer needs to match the terminal's behavior to avoid overwriting graphemes.
- Implemented types
Constructors
- EmojiWidthProbe({Duration timeout = const Duration(milliseconds: 180), String probeEmoji = 'π'})
- Creates an emoji width probe.
Properties
- gateNonCriticalMessages β bool
-
Whether non-critical messages should be gated during probing.
no setteroverride
- hashCode β int
-
The hash code for this object.
no setterinherited
- isActive β bool
-
Whether the probe is currently running.
no setteroverride
- probeEmoji β String
-
The emoji character used for width probing.
final
- runtimeType β Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout β Duration
-
Maximum time to wait for terminal response.
final
Methods
-
abort(
) β void -
Aborts the probe early.
override
-
handleMsg(
Msg msg, StartupProbeContext ctx) β bool -
Handles terminal response messages during probing.
override
-
noSuchMethod(
Invocation invocation) β dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
StartupProbeContext ctx) β Future< void> -
Starts the width probe by querying the terminal.
override
-
toString(
) β String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) β bool -
The equality operator.
inherited