Ayman Bagabas
83fa9be7fe
chore: use x/ansi instead of exp/term
2024-05-15 14:59:47 -04:00
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
Glenn Gonda
303724f7da
docs: fix typos and clean up comments ( #182 )
2023-03-12 11:04:42 +01:00
Ayman Bagabas
0a35904daa
fix(whitespace): style color profile
2023-02-09 11:59:54 -05:00
Ayman Bagabas
8565b7428f
fix(whitespace): use position renderer
2023-02-09 11:59:54 -05:00
Ayman Bagabas
b9c2626fe7
feat(renderer): use style renderer
...
lipgloss.Style now takes a renderer instance to be used to detect styles
and colors based on its termenv.Output and terminal
2023-02-09 11:59:54 -05:00
Ayman Bagabas
31ab45f810
feat: instantiate lipgloss renderers
...
* Use lipgloss instances instead of a singleton global instance
* Deprecate (s Style).Render & (s Style).String
* Deprecate the Stringer interface
* Update README and godocs
* Update example
2023-02-09 11:59:54 -05:00
Christian Rocha
514fa059f3
Fix and generally improve various doc comments
2022-02-14 11:43:23 -05:00
Kiyon
55b4f2a124
Fix a typo in the whitespace render doc comment
2021-04-06 08:22:21 +02:00
Christian Rocha
9b77d4607b
Rename ColorType to TerminalColor
2021-03-30 22:19:38 -04:00
Christian Rocha
1692c92c70
Add forground options to whitespace generator
2021-03-30 10:45:47 -04:00
Christian Rocha
73f6cab6ac
Option to set whitespace color in place functions + whitespace renderer
2021-03-26 15:57:47 -04:00