All Projects β†’ thecodrr β†’ boxx

thecodrr / boxx

Licence: MIT license
πŸ“¦ Create highly customizable terminal boxes that also look great!

Programming Languages

V
68 projects
AMPL
153 projects

Projects that are alternatives of or similar to boxx

Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (+43.75%)
Mutual labels:  console, box
Terminaltables
Generate simple tables in terminals from a nested list of strings.
Stars: ✭ 685 (+756.25%)
Mutual labels:  console, box
hawtio-integration
Core integration plugins for Hawtio: Apache ActiveMQ, Camel, Karaf, OSGi, and Spring Boot
Stars: ✭ 26 (-67.5%)
Mutual labels:  console
DelphiConsole
The Console class from C# ported to Delphi
Stars: ✭ 101 (+26.25%)
Mutual labels:  console
impress-cli
Impress Application Server Command line interface
Stars: ✭ 25 (-68.75%)
Mutual labels:  console
term
η»ˆη«―θΎ“ε‡ΊζŽ§εˆΆ
Stars: ✭ 38 (-52.5%)
Mutual labels:  console
cpp-indicators
A very simple, easy-to-use, and single-header-only C++ library for console based indicators (loading spinners)
Stars: ✭ 13 (-83.75%)
Mutual labels:  console
vue-static-terminal
A fully customizable static terminal component for vue.js
Stars: ✭ 18 (-77.5%)
Mutual labels:  console
python-sdk
python sdk for FISCO BCOS
Stars: ✭ 53 (-33.75%)
Mutual labels:  console
gdb-dashboard
Modular visual interface for GDB in Python
Stars: ✭ 8,699 (+10773.75%)
Mutual labels:  console
ZiggoNext
Custom component to integrate Arris DCX960 Horizon EOS Settopbox into Home Assistant
Stars: ✭ 33 (-58.75%)
Mutual labels:  box
ptkdev-logger
πŸ¦’ Beautiful Logger for Node.js: the best alternative to the console.log statement
Stars: ✭ 117 (+46.25%)
Mutual labels:  console
std-env
Detect current Javascript environment
Stars: ✭ 85 (+6.25%)
Mutual labels:  console
xtd
Free open-source modern C++17 / C++20 framework to create console, forms (GUI like WinForms) and unit test applications on Microsoft Windows, Apple macOS and Linux.
Stars: ✭ 321 (+301.25%)
Mutual labels:  console
LoggingAdvanced
Improved and patched .NET Core console logger.
Stars: ✭ 20 (-75%)
Mutual labels:  console
react-auto-mosaic
Automatic box behavior in the grid - responsive mosaic
Stars: ✭ 12 (-85%)
Mutual labels:  box
hyperConsole
Experiment with JS libraries with your browser's console
Stars: ✭ 18 (-77.5%)
Mutual labels:  console
bim360appstore-data.management-nodejs-transfer.storage
Autodesk design file transfer app: Transfers files from Autodesk (BIM 360, Fusion 360) to other Storages (Dropbox, Box, Onedrive, Google Drive, Egnyte)
Stars: ✭ 28 (-65%)
Mutual labels:  box
chessIO
Fast haskell chess move generator library and console UCI frontend
Stars: ✭ 25 (-68.75%)
Mutual labels:  console
fop console
Prestashop Module providing a set of shell/terminal commands for developers (PrestaShop 1.7.5+)
Stars: ✭ 64 (-20%)
Mutual labels:  console

πŸ“¦ Boxx

Create highly customizable terminal boxes that also look great!

Installation:

Install using vpkg

vpkg get https://github.com/thecodrr/boxx

Install using V's builtin vpm:

v install thecodrr.boxx

Install using git:

cd path/to/your/project
git clone https://github.com/thecodrr/boxx

All the awesome color support is made possible by thecodrr.crayon so install it:

v install thecodrr.crayon

Then in the wherever you want to use it:

import boxx

And that's it!

Usage

boxx.new(Config)

Initializes a new Box with the specified Config

boxx.new({px: 2, py: 1, typ: "single"})

Config

px: Horizontal Padding

py: Vertical Padding

content_align: Content Alignment inside the box

color :rgb or named (see Crayon for possible values & usage)

typ: The type of box (see Box Types below)

title_position: choose from one of inside, top or bottom

Box Types:

1. single

2. single_double

3. double_single

4. bold

5. round

6. classic

7. hidden

8. double

Title Positions:

1. inside

2. top

3. bottom

Boxx struct

You can create your own boxes as well if you want using the following values:

struct Boxx {
    top_right string //the top right corner symbol
    top_left string //the top left corner symbol
    vertical string //the symbol used for the vertical bars
    horizontal string  //the symbol used for the horizontal bars
    bottom_right string //the bottom right corner symbol
    bottom_left string //the bottom left corner symbol
}

Example:

box := &boxx.Boxx {
    top_right: "x"
    top_left: "x"
    bottom_right: "x"
    bottom_left: "x"
    vertical: "+"
    horizontal: "+"
}

Boxx.print(string, string)

Print the box according to the specified config.

Params:

text: The text that is to appear inside the box

title: The title at the top of the box. It is always center aligned. (optional)

Find this library useful? ❀️

Support it by joining stargazers for this repository. ⭐or buy me a cup of coffee And follow me for my next creations! 🀩

Much thanks to the developers of these repos:

  1. Atrox/box
  2. sindresorhus/cli-boxes

License

MIT License

Copyright (c) 2019 Abdullah Atta

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].