GithubHelp home page GithubHelp logo

lateralus138 / boxunichars Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 3.49 MB

Print all box characters with their corresponding alt and hexadecimal codes from the Windows command line.

License: GNU General Public License v3.0

C++ 100.00%

boxunichars's Introduction

Box Unicode Characters Box Unicode Characters LogoBox Unicode Characters Logo

Readme Card



About

All files can be found on the Releases page.

Description

This Windows command line tool displays the various Unicode box characters[1] in several nice formats with the corresponding alt or hexadecimal codes.

Motivation

I use box characters for all sorts of comments in programming, scripting, and configuration files and so I wrote this tool to quickly reference their codes and/or copy from the command line.


Support Me If You Like

If you like any of the projects below and care to donate to my PayPal:

PayPal Donation

Or Buy Me A Coffee if your prefer:

Buy Me A Coffee


Usage

Environment

This is a Windows command line tool for CMD and PowerShell. There are both x86 (32 bit) and x64 (64 bit) versions of the executable.

How To Use

As with any portable program this can be placed anywhere you like on your machine, but more preferably in a directory that is in your %PATH% environment variable so you can run it without a full path (boxunichars for example). I recommend using a dedicated Bin directory, but of course, it's your choice. If your path isn't already in your %PATH% environment then I suggest adding it[2], but if not then you have provide the full path (C:\Path\To\boxunichars.exe for example) when executing the program.

This will display all 4 box types in a 2x2 square with alt codes by default, but there are 6 other display types; 2 additional all types and 4 single types and each can be viewed as either alt or hexadecimal codes with the provided corresponding switches;

Display types

  • All

    1. Default: all 4 main types displayed in a 2x2 square.
    2. Horizontal: all 4 main types displayed horizontally.
    3. Vertical: all 4 main types displayed vertically.
  • Single

    1. Single: Single line box characters only.
    2. Double: Double line box characters only.
    3. SingleDouble: Single vertical and double horizontal line box characters only.
    4. DoubleSingle: Double vertical and single horizontal line box characters only.

Code Types

  • Alt: Codes displayed are of the Alt type.
  • Hexadecimal: Codes displayed are of the hexadecimal type.

Other Usage

All types can be displayed in both code formats and all at the same time if needed. If no display switches are provided it defaults to All/Alt, but if switches are provided then only what you pass to the program is displayed (though default can be re-added). You can view both code types by passing the display type twice with the code type switch passed before the display type. Whichever code type is passed last will be the code type for any proceeding display types:

Display single line box characters in both alt and hexadecimal modes:

PS> boxunichars /alt /single /hexadecimal /single # or /l /s /x /s
┌───────────────────────────────────┐
│      Box Unicode Characters       │
├───────────────────────────────────┤
│ ┌─┬─┐                             │
│ │ │ │                             │
│ ├─┼─┤          Alt Codes          │
│ │ │ │                             │
│ └─┴─┘                             │
│  218 ┌  196 ─  194 ┬  196 ─  191 ┐│
│  179 │         179 │         179 ││
│  195 ├  196 ─  197 ┼  196 ─  180 ┤│
│  179 │         179 │         179 ││
│  192 └  196 ─  193 ┴  196 ─  217 ┘│
└───────────────────────────────────┘
┌───────────────────────────────────┐
│      Box Unicode Characters       │
├───────────────────────────────────┤
│ ┌─┬─┐                             │
│ │ │ │                             │
│ ├─┼─┤          Hex Codes          │
│ │ │ │                             │
│ └─┴─┘                             │
│ 250C ┌ 2500 ─ 252C ┬ 2500 ─ 2510 ┐│
│ 2502 │        2502 │        2502 ││
│ 251C ├ 2500 ─ 253C ┼ 2500 ─ 2524 ┤│
│ 2502 │        2502 │        2502 ││
│ 2514 └ 2500 ─ 2534 ┴ 2500 ─ 2518 ┘│
└───────────────────────────────────┘

Examples

Wider outputs look better on a wider landscape display, not portrait on a mobile device etc.

Help Message

PS> boxunichars /?

Box Unicode Characters - Print all box characters
                         with their corresponding
                         alt and hexadecimal codes.

boxunichars   [/? | /h | /help] | [/a | /all] |
  [/z | /horizonatal] | [/v | /vertical]
  [/s | /single] | [/d | /double]
  [/sd | /singledouble] | [/ds | /doublesingle]
  [/x | /hexadecimal] | [/l | /alt]

  The user can use as many of these display switches
  as they like and they can change the code mode (alt
  or hexadecimal) of each by providing either the
  /l, /alt, /x, or /hexadecimal switches before each
  display switch. The last provided code mode will be
  be used if none is provided (defaulting to alt
  mode)

  /a, /all            Display all types in a square.
                      This is the default.
  /z, /horizontal     Display all types horizontally.
  /v, /vertical       Display all types vertically.
  /s, /single         Display single type.
  /d, /double         Display double type.
  /sd, /singledouble  Display single vertical double
                      horizontal type.
  /ds, /doublesingle  Display double vertical single
                      horizontal type.
  /x, /hexadecimal    Values displayed in hexadecimal
                      code format.
  /l, /alt            Values displayed in alt code
                      format. This is the default,

Default output as alt:

PS> boxunichars
┌───────────────────────────────────────────────────────────────────────┐
│                         Box Unicode Characters                        │
├───────────────────────────────────┬───────────────────────────────────┤
│ ╔═╦═╗                             │ ╒═╤═╕                             │
│ ║ ║ ║                             │ │ │ │                             │
│ ╠═╬═╣          Alt Codes          │ ╞═╪═╡          Alt Codes          │
│ ║ ║ ║                             │ │ │ │                             │
│ ╚═╩═╝                             │ ╘═╧═╛                             │
│  201 ╔  205 ═  203 ╦  205 ═  187 ╗│  213 ╒  205 ═  209 ╤  205 ═  184 ╕│
│  186 ║         186 ║         186 ║│  179 │         179 │         179 ││
│  204 ╠  205 ═  206 ╬  205 ═  185 ╣│  198 ╞  205 ═  216 ╪  205 ═  181 ╡│
│  186 ║         186 ║         186 ║│  179 │         179 │         179 ││
│  200 ╚  205 ═  202 ╩  205 ═  188 ╝│  212 ╘  205 ═  207 ╧  205 ═  190 ╛│
├───────────────────────────────────┼───────────────────────────────────┤
│ ╓─╥─╖                             │ ┌─┬─┐                             │
│ ║ ║ ║                             │ │ │ │                             │
│ ╟─╫─╢          Alt Codes          │ ├─┼─┤          Alt Codes          │
│ ║ ║ ║                             │ │ │ │                             │
│ ╙─╨─╜                             │ └─┴─┘                             │
│  214 ╓  196 ─  210 ╥  196 ─  183 ╖│  218 ┌  196 ─  194 ┬  196 ─  191 ┐│
│  186 ║         186 ║         186 ║│  179 │         179 │         179 ││
│  199 ╟  196 ─  215 ╫  196 ─  182 ╢│  195 ├  196 ─  197 ┼  196 ─  180 ┤│
│  186 ║         186 ║         186 ║│  179 │         179 │         179 ││
│  211 ╙  196 ─  208 ╨  196 ─  189 ╜│  192 └  196 ─  193 ┴  196 ─  217 ┘│
└───────────────────────────────────┴───────────────────────────────────┘

Default output as hexadecimal:

PS> boxunichars /x
┌───────────────────────────────────────────────────────────────────────┐
│                         Box Unicode Characters                        │
├───────────────────────────────────┬───────────────────────────────────┤
│ ╔═╦═╗                             │ ╒═╤═╕                             │
│ ║ ║ ║                             │ │ │ │                             │
│ ╠═╬═╣          Hex Codes          │ ╞═╪═╡          Hex Codes          │
│ ║ ║ ║                             │ │ │ │                             │
│ ╚═╩═╝                             │ ╘═╧═╛                             │
│ 2554 ╔ 2550 ═ 2566 ╦ 2550 ═ 2557 ╗│ 2552 ╒ 2550 ═ 2564 ╤ 2550 ═ 2555 ╕│
│ 2551 ║        2551 ║        2551 ║│ 2502 │        2502 │        2502 ││
│ 2560 ╠ 2550 ═ 256C ╬ 2550 ═ 2563 ╣│ 255E ╞ 2550 ═ 256A ╪ 2550 ═ 2561 ╡│
│ 2551 ║        2551 ║        2551 ║│ 2502 │        2502 │        2502 ││
│ 255A ╚ 2550 ═ 2569 ╩ 2550 ═ 255D ╝│ 2558 ╘ 2550 ═ 2567 ╧ 2550 ═ 255B ╛│
├───────────────────────────────────┼───────────────────────────────────┤
│ ╓─╥─╖                             │ ┌─┬─┐                             │
│ ║ ║ ║                             │ │ │ │                             │
│ ╟─╫─╢          Hex Codes          │ ├─┼─┤          Hex Codes          │
│ ║ ║ ║                             │ │ │ │                             │
│ ╙─╨─╜                             │ └─┴─┘                             │
│ 2553 ╓ 2500 ─ 2565 ╥ 2500 ─ 2556 ╖│ 250C ┌ 2500 ─ 252C ┬ 2500 ─ 2510 ┐│
│ 2551 ║        2551 ║        2551 ║│ 2502 │        2502 │        2502 ││
│ 255F ╟ 2500 ─ 256B ╫ 2500 ─ 2562 ╢│ 251C ├ 2500 ─ 253C ┼ 2500 ─ 2524 ┤│
│ 2551 ║        2551 ║        2551 ║│ 2502 │        2502 │        2502 ││
│ 2559 ╙ 2500 ─ 2568 ╨ 2500 ─ 255C ╜│ 2514 └ 2500 ─ 2534 ┴ 2500 ─ 2518 ┘│
└───────────────────────────────────┴───────────────────────────────────┘

Horizontal output:

PS> boxunichars /z
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                           Box Unicode Characters                                                              │
├───────────────────────────────────┬───────────────────────────────────┬───────────────────────────────────┬───────────────────────────────────┤
│ ╔═╦═╗                             │ ╒═╤═╕                             │ ╓─╥─╖                             │ ┌─┬─┐                             │
│ ║ ║ ║                             │ │ │ │                             │ ║ ║ ║                             │ │ │ │                             │
│ ╠═╬═╣          Alt Codes          │ ╞═╪═╡          Alt Codes          │ ╟─╫─╢          Alt Codes          │ ├─┼─┤          Alt Codes          │
│ ║ ║ ║                             │ │ │ │                             │ ║ ║ ║                             │ │ │ │                             │
│ ╚═╩═╝                             │ ╘═╧═╛                             │ ╙─╨─╜                             │ └─┴─┘                             │
│  201 ╔  205 ═  203 ╦  205 ═  187 ╗│  213 ╒  205 ═  209 ╤  205 ═  184 ╕│  214 ╓  196 ─  210 ╥  196 ─  183 ╖│  218 ┌  196 ─  194 ┬  196 ─  191 ┐│
│  186 ║         186 ║         186 ║│  179 │         179 │         179 ││  186 ║         186 ║         186 ║│  179 │         179 │         179 ││
│  204 ╠  205 ═  206 ╬  205 ═  185 ╣│  198 ╞  205 ═  216 ╪  205 ═  181 ╡│  199 ╟  196 ─  215 ╫  196 ─  182 ╢│  195 ├  196 ─  197 ┼  196 ─  180 ┤│
│  186 ║         186 ║         186 ║│  179 │         179 │         179 ││  186 ║         186 ║         186 ║│  179 │         179 │         179 ││
│  200 ╚  205 ═  202 ╩  205 ═  188 ╝│  212 ╘  205 ═  207 ╧  205 ═  190 ╛│  211 ╙  196 ─  208 ╨  196 ─  189 ╜│  192 └  196 ─  193 ┴  196 ─  217 ┘│
└───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┘

Vertical output:

PS> boxunichars /v
┌───────────────────────────────────┐
│      Box Unicode Characters       │
├───────────────────────────────────┤
│ ╔═╦═╗                             │
│ ║ ║ ║                             │
│ ╠═╬═╣          Alt Codes          │
│ ║ ║ ║                             │
│ ╚═╩═╝                             │
│  201 ╔  205 ═  203 ╦  205 ═  187 ╗│
│  186 ║         186 ║         186 ║│
│  204 ╠  205 ═  206 ╬  205 ═  185 ╣│
│  186 ║         186 ║         186 ║│
│  200 ╚  205 ═  202 ╩  205 ═  188 ╝│
├───────────────────────────────────┤
│ ╒═╤═╕                             │
│ │ │ │                             │
│ ╞═╪═╡          Alt Codes          │
│ │ │ │                             │
│ ╘═╧═╛                             │
│  213 ╒  205 ═  209 ╤  205 ═  184 ╕│
│  179 │         179 │         179 ││
│  198 ╞  205 ═  216 ╪  205 ═  181 ╡│
│  179 │         179 │         179 ││
│  212 ╘  205 ═  207 ╧  205 ═  190 ╛│
├───────────────────────────────────┤
│ ╓─╥─╖                             │
│ ║ ║ ║                             │
│ ╟─╫─╢          Alt Codes          │
│ ║ ║ ║                             │
│ ╙─╨─╜                             │
│  214 ╓  196 ─  210 ╥  196 ─  183 ╖│
│  186 ║         186 ║         186 ║│
│  199 ╟  196 ─  215 ╫  196 ─  182 ╢│
│  186 ║         186 ║         186 ║│
│  211 ╙  196 ─  208 ╨  196 ─  189 ╜│
├───────────────────────────────────┤
│ ┌─┬─┐                             │
│ │ │ │                             │
│ ├─┼─┤          Alt Codes          │
│ │ │ │                             │
│ └─┴─┘                             │
│  218 ┌  196 ─  194 ┬  196 ─  191 ┐│
│  179 │         179 │         179 ││
│  195 ├  196 ─  197 ┼  196 ─  180 ┤│
│  179 │         179 │         179 ││
│  192 └  196 ─  193 ┴  196 ─  217 ┘│
└───────────────────────────────────┘

Single output:

PS> boxunichars /s
┌───────────────────────────────────┐
│      Box Unicode Characters       │
├───────────────────────────────────┤
│ ┌─┬─┐                             │
│ │ │ │                             │
│ ├─┼─┤          Alt Codes          │
│ │ │ │                             │
│ └─┴─┘                             │
│  218 ┌  196 ─  194 ┬  196 ─  191 ┐│
│  179 │         179 │         179 ││
│  195 ├  196 ─  197 ┼  196 ─  180 ┤│
│  179 │         179 │         179 ││
│  192 └  196 ─  193 ┴  196 ─  217 ┘│
└───────────────────────────────────┘

Double output:

PS> boxunichars /d
┌───────────────────────────────────┐
│      Box Unicode Characters       │
├───────────────────────────────────┤
│ ╔═╦═╗                             │
│ ║ ║ ║                             │
│ ╠═╬═╣          Alt Codes          │
│ ║ ║ ║                             │
│ ╚═╩═╝                             │
│  201 ╔  205 ═  203 ╦  205 ═  187 ╗│
│  186 ║         186 ║         186 ║│
│  204 ╠  205 ═  206 ╬  205 ═  185 ╣│
│  186 ║         186 ║         186 ║│
│  200 ╚  205 ═  202 ╩  205 ═  188 ╝│
└───────────────────────────────────┘

Single vertical double horizontal output:

PS> boxunichars /sd
┌───────────────────────────────────┐
│      Box Unicode Characters       │
├───────────────────────────────────┤
│ ╒═╤═╕                             │
│ │ │ │                             │
│ ╞═╪═╡          Alt Codes          │
│ │ │ │                             │
│ ╘═╧═╛                             │
│  213 ╒  205 ═  209 ╤  205 ═  184 ╕│
│  179 │         179 │         179 ││
│  198 ╞  205 ═  216 ╪  205 ═  181 ╡│
│  179 │         179 │         179 ││
│  212 ╘  205 ═  207 ╧  205 ═  190 ╛│
└───────────────────────────────────┘

Double vertical single horizontal output:

PS> boxunichars /ds
┌───────────────────────────────────┐
│      Box Unicode Characters       │
├───────────────────────────────────┤
│ ╓─╥─╖                             │
│ ║ ║ ║                             │
│ ╟─╫─╢          Alt Codes          │
│ ║ ║ ║                             │
│ ╙─╨─╜                             │
│  214 ╓  196 ─  210 ╥  196 ─  183 ╖│
│  186 ║         186 ║         186 ║│
│  199 ╟  196 ─  215 ╫  196 ─  182 ╢│
│  186 ║         186 ║         186 ║│
│  211 ╙  196 ─  208 ╨  196 ─  189 ╜│
└───────────────────────────────────┘

Project Information

This project is written in C++.

C++

Source File Quality

This is graded by CodeFactor and is subjective, but helps me to refactor my work.

Name Status
codefactor.io

File MD5 Hashes

All hashes are retrieved at compile/build time.

Current Windows X86 MD5

WINDOWS X86 MD5

Current Windows X64 MD5

WINDOWS X64 MD5

Other Miscellaneous File Information

Description Status
Project Release Date GitHub Release Date
Total downloads for this project GitHub all releases
Complete repository size This Repo Size
Commits in last month GitHub commit activity
Commits in last year GitHub commit activity

Notes

Note 1

unicode box characters @ DuckDuckGo

Note 2

Adding a path to the Windows %PATH% environment variable @ DuckDuckGo


Media

Logo

MAINLOGOMAINLOGO

Help Screen

HELPSCREEN

Default, horizontal, and vertical "all" displays

ALLDSIPLAYS

Single displays

SINGLEDISPLAYS


License Info

License Excerpt
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

boxunichars's People

Contributors

lateralus138 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.