Commit Graph

3 Commits

Author SHA1 Message Date
Ayman Bagabas
f6f93348b0
feat: switch to term/ansi for text manipulation (#268)
* feat: switch to term/ansi for text manipulation

Use ANSI aware, wide characters support, uniseg backed term/ansi package
to calculate string widths, truncate, and wrap strings.

Related: https://github.com/muesli/reflow/pull/71
Fixes: https://github.com/charmbracelet/lipgloss/issues/258
Fixes: https://github.com/charmbracelet/lipgloss/issues/220

* Update get.go
2024-03-29 15:05:18 -04:00
Christian Rocha
493d49e38a Add info on measuring width/height to README + add Size helper function 2021-04-29 09:59:44 -04:00
Christian Rocha
7d217d8505
Add utils for measuring paragraphs 2021-03-29 17:45:42 -04:00