Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SurrogatePairOk is true when the surrogated pair unicode is supported // If it is false, <NNNN> is displayed instead. SurrogatePairOk = isWindowsTerminal || isWezTerm || isContour // ZeroWidthJoinSequenceOk is true when ZWJ(U+200D) is supported. // If it is false, <NNNN> is displayed instead. ZeroWidthJoinSequenceOk = isWindowsTerminal || isWezTerm || isContour // VariationSequenceOk is true when Variation Sequences are supported. // If it is false, <NNNN> is displayed instead. VariationSequenceOk = isWindowsTerminal || isWezTerm || isContour // ModifierSequenceOk is false, SkinTone sequence are treated as two // character ModifierSequenceOk = isWindowsTerminal || isWezTerm // AmbiguousIsWide is true, EastAsianAmbiguous are treated as two width AmbiguousIsWide = !isWindowsTerminal )
Functions ¶
func AreEmojiModifier ¶
func AreZeroWidthJoin ¶
func IsSpaceMoji ¶
func MojiToRune ¶
func ResetCharWidth ¶
func ResetCharWidth()
ResetCharWidth resets the cache for the width of characters.
func SetCharWidth ¶
SetCharWidth sets the width of the character into the cache.
Types ¶
type Moji ¶
Moji is the interface for minimum unit to edit in readline
When we make a new implement type of Moji, we have to append the code in the function: StringToMoji() and KeyFuncInsertSelf().
func StringToMoji ¶
type Tab ¶ added in v0.13.0
type Tab struct {
// contains filtered or unexported fields
}
func (*Tab) SetPosition ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.