utils

package
v0.0.0-...-14468cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CellsToString

func CellsToString(cells []view.Cell) string

func GetTerminalSize

func GetTerminalSize() (int, int)

func InterfaceSlice

func InterfaceSlice(slice interface{}) []interface{}

func RunesToStyledCells

func RunesToStyledCells(runes []rune, style style.Style) []view.Cell

func SplitCells

func SplitCells(cells []view.Cell, r rune) [][]view.Cell

func TrimCells

func TrimCells(cells []view.Cell, w int) []view.Cell

func TrimString

func TrimString(s string, w int) string

func UpdateTerminalSize

func UpdateTerminalSize() error

func WrapCells

func WrapCells(cells []view.Cell, width uint) []view.Cell

func WrapString

func WrapString(s string, lim uint) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL