An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.0% on proxy.golang.org
Top 0.8% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 5.6% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/Delta456/box-cli-maker/v2

Package box a.k.a Box CLI Maker is a Highly Customized Terminal Box Creator written in Go. It provides many styles and options to make Boxes. There are 8 inbuilt styles and has Color support via RGB uint, RGB Array of [3]uint and string (Given). Inbuilt Box Styles: Single, Double, Bold, Single Double, Double Single, Round, Hidden and Classic Inbuilt Colors: Black, Blue, Red, Yellow, Green, Cyan, Magenta, White, HiBlack, HiBlue, HiRed, HiYellow, HiGreen, HiCyan, HiMagenta and HiWhite It also has Unicode and Emoji support which works across almost all terminals. Unlike other CLI Makers, Box CLI Maker also supports tab, multi-line strings and string wrapping. Disclaimer: As different terminals have different fonts by default so the right vertical alignment may not be aligned well. You will have to change your font accordingly to make it work. Basic Example: You can specify and change the options by changing the below Config struct. TitlePos can be changed to Inside, Top, Bottom and ContentAlign to be Left, Right and Center. By default TitlePos is Inside, ContentAlign is Left and Style is Single. Manual string wrapping is also allowed via a flag Config.AllowWrapping, by the default padding, is 2*TermWidth/3. String() method can be for the string representation of the Box. True Color is also supported and it can be by providing an array of [3]uint or uint. There might be some terminals not supporting True Color so in this case, it will detect the terminal's max color capacity then will round off True Color to either 4-bit or 8-bit respectively. Title and Content can also be colored by passing the colors needed to the fields box.TitleColor and box.ContentColor respectively. This module also enables True Color and 256 Colors support on Windows Console but you need have at least Windows 10 Version 1511 for 256 colors or Windows 10 Version 1607 for True Color Support. Example of True Color via uint: Note: uint must be in a range of [0x000000, 0xFFFFFF]. Example of True Color via [3]uint: Note: [3]uint array elements must be in a range of [0x0, 0xFF]. Custom Box Style can also be by using box.Box: More info and examples can be found in README.md and examples/ folder

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/%21delta456/box-cli-maker/v2
Keywords: bash , box , cli , color , console , emoji , go , golang , shell , tabs , terminal , tui , unicode
License: MIT
Latest release: over 2 years ago
First release: over 2 years ago
Namespace: github.com/Delta456/box-cli-maker
Dependent packages: 56
Dependent repositories: 100
Stars: 335 on GitHub
Forks: 15 on GitHub
Docker dependents: 103
Docker downloads: 346,005,882
See more repository details: repos.ecosyste.ms
Last synced: 17 days ago

    Loading...
    Readme
    Loading...