GithubHelp home page GithubHelp logo

israpps / diagbox Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.45 MB

A command-line utility to change (partially) the color of windows command prompt

License: GNU General Public License v3.0

C++ 98.12% CMake 1.88%
windows-cmd batch-script

diagbox's Introduction

DiagBox

the purpose of this app is to change the text color in the windows command prompt partially (instead of changing all the text color like the command "color" does) this can only be done by the CMD.EXE on it's own in windows 10 (its horrible since it makes the .BAT harder to read)

Useful tip:

Add a color macro at the beginning of the program to enforce a specific text color (in case the user changes the default color on program properties)

USAGE

DiagBox.EXE gd <HEX_COLOR_CODE> 

the "HEX_COLOR_CODE' refers to a pair of HEX digits. it works the same way that color command, you must pass two HEX digits, the first one will be the BG and the second one will be the Text color

code color
0 Black
1 blue
2 green
3 light blue
4 red
5 purple
6 yellow
7 white
8 grey
9 blue (bright)
A green (bright)
B light blue (bright)
C red (bright)
D purple (bright)
E yellow (bright)
F white (bright)

If the table was not enough, see all the combinations in action! Examples


in adition: with diagbox you can use the same foreground and background (color didn't allow this)

lib

if you want to use this inside your program simply #include "diagbox.h" on your program and use one of the macros declared inside

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.