You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Box CLI Maker is a Highly Customized Terminal Box Creator.
17
+
</div>
12
18
13
19
## Features
14
20
15
-
- Make Terminal Box in 8️⃣ inbuilt different style
16
-
-Color Support 🎨
21
+
- Make Terminal Box in 8️⃣ inbuilt different styles
22
+
-16 Inbuilt Colors and Custom (24 bit) Colors Support 🎨
17
23
- Custom Title Positions
18
24
- Make your own Terminal Box style 📦
19
25
- Align the text according to the need
20
-
- Unicodeand Emoji Support 😋
26
+
- Unicode, Emoji and [Windows Console](https://en.wikipedia.org/wiki/Windows_Console) Support 😋
21
27
- Written in 🇬 🇴
22
28
23
29
## Installation
@@ -132,7 +138,7 @@ type Box struct {
132
138
BottomRightstring// BottomRight corner used for Symbols
133
139
BottomLeftstring// BotromLeft corner used for Symbols
134
140
Horizontalstring// Symbols used for Horizontal Bars
135
-
ConConfig// Configuration for the Box to be made
141
+
Config// Configuration for the Box to be made
136
142
}
137
143
```
138
144
@@ -182,6 +188,12 @@ var fgHiColors = map[string]color.Attribute{
182
188
183
189
If you want High Intensity Colors then the Color name should start with `Hi`. If Color option is empty or invalid then Box with default Color is formed.
184
190
191
+
It can even have custom color which can be provided in `[3]uint` and `uint` though the elements of the array must be in a range of `[0x0, 0xFF]` and `uint` must be in a range of `[0x000000, 0xFFFFFF]`.
192
+
193
+
If you want to use the string representation of the `Box` and print them for [`Windows Console`](https://en.wikipedia.org/wiki/Windows_Console) then you would have to use `box.Output` as the passing stream to the respective functions.
194
+
195
+
`Windows Console` is 4 bit (16 colors) so Custom Colors will not work for them but the `Box` will be printed correctly without the Color effect.
196
+
185
197
### Note
186
198
187
199
#### Vertical Alignment
@@ -203,9 +215,9 @@ I thank the following people and their packages whom I have studied and was able
Special thanks to [@elimsteve](https://github.com/elimisteve) who helped me to optimize and tell me the best ways possible to fix my problems.
220
+
Special thanks to [@elimsteve](https://github.com/elimisteve) who helped me to optimize the code and told me the best possible ways to fix my problems and [@JalonSolov](https://github.com/JalonSolov) for tab lines support.
209
221
210
222
Kudos to [moul/golang-repo-template](https://github.com/moul/golang-repo-template) for their Go template.
0 commit comments