Commit Graph

259 Commits

Author SHA1 Message Date
Christian Rocha
874349bbec Don't enable ANSI in cmd.exe until absolutely necessary 2021-04-06 11:39:01 -04:00
Christian Rocha
fedd7a49aa Enable ANSI colors in cmd.exe and Windows PowerShell in Windows 10 2021-04-06 11:39:01 -04:00
Kiyon
cb8ec749fe Use the same receiver name 2021-04-06 08:25:18 +02:00
Kiyon
84c08a0604 fix typos in join 2021-04-06 08:25:02 +02:00
Kiyon
3cb36e5bd1 Cleanup: fix a typo and remove a redundant line 2021-04-06 08:24:41 +02:00
Kiyon
09613e226b Fix typos in unset 2021-04-06 08:24:10 +02:00
Kiyon
90ec1a88d1 Fix typos in set 2021-04-06 08:23:35 +02:00
Kiyon
55b4f2a124 Fix a typo in the whitespace render doc comment 2021-04-06 08:22:21 +02:00
Ahmed Khalf
5874013ef4 Fix example code to reflect api changes
Added boolean to Inline() function
2021-04-05 17:43:36 -04:00
Christian Rocha
816cd12f4a Remove irrelevant note about unset and falsey values 2021-04-05 15:20:51 -04:00
Christian Rocha
cdba8ecd00 Fix a typo in the Inline doc comment 2021-04-05 11:22:17 -04:00
Christian Rocha
b3875326a3 Don't check color profile and terminal darkness until absolutely necessary 2021-04-05 10:43:01 -04:00
Christian Rocha
e45d00a9fe
go mod tidy against example per termenv update 2021-04-03 10:36:20 -04:00
Christian Rocha
57eb90e4ca
Fix typo in README 2021-04-03 10:25:48 -04:00
Christian Muehlhaeuser
1ac779f6f5 Fix typo in README 2021-04-03 10:22:59 -04:00
Christian Rocha
975984b13e
Rework Bubble Tea section of README based on the release notes 2021-04-02 22:03:21 -04:00
Christian Muehlhaeuser
21f16e8487
Bump termenv to v0.8.1 2021-04-03 00:19:05 +02:00
Christian Rocha
f271740892
Add header art to README 2021-04-02 18:11:32 -04:00
Christian Rocha
d3409399f6
Update term package location in example (former was deprecated) 2021-04-02 10:31:02 -04:00
Christian Rocha
3e266362d8
Remove ineffectual assignment in example 2021-04-02 10:27:29 -04:00
Christian Rocha
f7f21906fd
Just expose the API for setting the margin color. 2021-04-02 10:24:42 -04:00
Christian Rocha
3b2c9574ca
Remove the gaps and add the periods that the linter wants 2021-04-02 10:22:28 -04:00
Christian Rocha
408a26e349
Whoops, fix infinite recursion and actualy implement Go Color 2021-04-02 10:22:05 -04:00
Christian Rocha
31edf671ae
Correct align and join examples in the README + copy corrections 2021-03-31 14:06:12 -04:00
Christian Rocha
701d83b0e6
Fix an inconsistency in a README example 2021-03-31 11:00:36 -04:00
Christian Rocha
910319f64d
Tidy up example 2021-03-31 10:56:59 -04:00
Christian Rocha
382505df54
Add example image to README + small README copy edits 2021-03-31 10:41:07 -04:00
Christian Rocha
31b52762a4
Style.Inline() now skips over padding, margins and borders entirely 2021-03-31 09:55:21 -04:00
Christian Rocha
7f5222e773
Adjust some colors in the example 2021-03-31 09:42:15 -04:00
Christian Rocha
247757451d
Clarify what unsetting means in the README 2021-03-30 23:00:40 -04:00
Christian Rocha
36d20119f8
Add note about Bubble Tea/Bubbles to the README 2021-03-30 22:56:22 -04:00
Christian Rocha
5f2462b486
Add info about Place/PlaceHorizontal/PlaceVertical to the README 2021-03-30 22:44:03 -04:00
Christian Rocha
5eabaaea37
Colors satisfy the Go color interface 2021-03-30 22:28:54 -04:00
Christian Rocha
9b77d4607b
Rename ColorType to TerminalColor 2021-03-30 22:19:38 -04:00
Christian Rocha
8a4bf146ce
Finish up example 2021-03-30 22:15:28 -04:00
Christian Rocha
34d6f0c73b
Make map before inheriting 2021-03-30 22:15:28 -04:00
Christian Rocha
cb8b96556e
Margins inherit background color 2021-03-30 22:15:28 -04:00
Christian Rocha
9b77861080
Style.Inherit should return a style 2021-03-30 22:15:28 -04:00
Christian Rocha
f74e4b84cb
Correct height measurement in Style.Render() 2021-03-30 22:15:28 -04:00
Christian Rocha
c9a4a313f8
Rough example 2021-03-30 22:15:23 -04:00
Christian Rocha
619b74ed87
Apply border before applying margins 2021-03-30 13:06:15 -04:00
Christian Rocha
0cd4e2cc7f
Fix naming on padding setters 2021-03-30 13:05:39 -04:00
Christian Rocha
1692c92c70
Add forground options to whitespace generator 2021-03-30 10:45:47 -04:00
Christian Rocha
f24a617e3a
Pad short lines when horizontally positioning 2021-03-30 10:45:29 -04:00
Christian Rocha
5ec7baa707
Fix width of borders when they're horizontal only 2021-03-30 10:18:38 -04:00
Christian Rocha
7d217d8505
Add utils for measuring paragraphs 2021-03-29 17:45:42 -04:00
Christian Rocha
82393c2d95
Fix bug where top border was being rendered on the bottom 2021-03-26 18:15:16 -04:00
Christian Rocha
73f6cab6ac
Option to set whitespace color in place functions + whitespace renderer 2021-03-26 15:57:47 -04:00
Christian Rocha
25d9c64aa9
Remove an unused const 2021-03-26 14:18:50 -04:00
Christian Rocha
5b43b10fd6
Add utility for horizontally and vertically placing blocks in whitespace 2021-03-26 13:35:48 -04:00