Commit graph

8 commits

Author SHA1 Message Date
Jan De Dobbeleer 50473767a7 chore(ci): replace golint with revive 2021-05-21 20:33:11 +02:00
Jan De Dobbeleer b11b69f0e8 refactor: ansi module cleanup 2021-04-21 19:54:43 +02:00
Jan De Dobbeleer e6247da593 feat: set terminal background color
relates to #529
relates to #322
relates to #497

Windors terminal and Visual Studio Code do not work well with inversted
ANSI sequences. This weak allows users to override the Tranparency to
the terminal background color removing black elements in their prompt.

Ideally we remove this once they are on par with other terminals, but
that could take a while.

See https://github.com/microsoft/vscode/issues/111762
and https://github.com/microsoft/terminal/issues/7014
2021-03-14 14:25:27 +01:00
Jan De Dobbeleer 3fbf785bd9 feat: ansi text formats
resolves #440
2021-02-27 13:19:44 +01:00
Jan De Dobbeleer 3a86f49b72 perf: use strings.Builder instead of buffer 2021-01-08 20:59:11 +01:00
Jan De Dobbeleer 59282c088d refactor: separate ansi formats 2020-12-27 18:23:40 +01:00
Laurent Nullens 969b54420a fix: avoid emitting empty ansi color codes
When there's no color override an empty string is emitted.
The fix reduces the emitted output by 40% approximatively with the default theme(1604 -> 1138).
2020-12-27 11:39:05 +01:00
Jan De Dobbeleer ed2eac8e12 feat: adjust source code layout 2020-12-25 20:11:24 +01:00
Renamed from ansi_color.go (Browse further)