https://github.com/israpps/diagbox
A command-line utility to change (partially) the color of windows command prompt
https://github.com/israpps/diagbox
batch-script windows-cmd
Last synced: 3 months ago
JSON representation
A command-line utility to change (partially) the color of windows command prompt
- Host: GitHub
- URL: https://github.com/israpps/diagbox
- Owner: israpps
- License: gpl-3.0
- Created: 2021-03-27T04:34:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-04T13:35:39.000Z (over 3 years ago)
- Last Synced: 2025-01-01T17:27:08.445Z (5 months ago)
- Topics: batch-script, windows-cmd
- Language: C++
- Homepage:
- Size: 3.37 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
DiagBox.EXE gd
```
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 colorcode | 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!
---
in adition:
with diagbox you can use the same foreground and background (`color` didn't allow this)
# libif you want to use this inside your program simply #include "[__diagbox.h__](https://github.com/israpps/DiagBox/blob/main/diagbox.h)" on your program and use one of the macros declared inside