module

TermBuf::Input::Utf8

As much of UTF-8 as decoding a keystroke needs.

A deliberate copy of the one thing termbuf's Unicode module offers that the decoder uses, so that the input side carries no dependency on the width and grapheme machinery it has no use for.

Class methods

length(lead : UInt8) : Int32

How many bytes the character starting with lead takes, or zero if lead is not a lead byte at all.

The over-long and surrogate ranges are excluded, so a byte this accepts begins a character that can exist.

Source