Documentation
¶
Index ¶
- func ASCIIIcon(icon string, asciiMode bool) string
- func ContainsWide(s string) bool
- func FitLabel(s string, cols int) string
- func IconCells(icon string, asciiMode bool) int
- func Pad(s string, cols int) string
- func Rune(r rune) int
- func String(s string) int
- func Truncate(s string, maxCols int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASCIIIcon ¶
ASCIIIcon returns a single-cell substitute when asciiMode is on and icon looks wide/emoji.
func ContainsWide ¶
ContainsWide reports whether s has any double-width rune.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.