mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
color document
This commit is contained in:
parent
a9bfcb015c
commit
ae36cc6e1b
1 changed files with 50 additions and 0 deletions
50
doc/colors_notes.md
Normal file
50
doc/colors_notes.md
Normal file
|
@ -0,0 +1,50 @@
|
|||
<a id="Top"></a>
|
||||
# Notes on Color usage.
|
||||
|
||||
## Table of Contents
|
||||
* [style/color](#style_color)
|
||||
* [Proxspace](#proxspace)
|
||||
* [](#)
|
||||
|
||||
The client should autodetect color support when starting.
|
||||
|
||||
You can also use the command `pref show` to see and set your personal setting.
|
||||
|
||||
Why use colors in the Proxmark client? When evertyhing is white it is hard to extract the important information fast. You also need new-lines for extra space to be easier to read.
|
||||
We have gradually been introducing this color scheme into the client since we got decent color support on all systems: OSX, Linux, WSL, Proxspace.
|
||||
|
||||
|
||||
## style/color
|
||||
^[Top](#top)
|
||||
The following definition has be crystalized out from these experiments. Its not set in stone yet so take this document as a guideline for how to create unified system scheme.
|
||||
|
||||
### Definition
|
||||
^[Top](#top)
|
||||
- blue - system related headers, banner
|
||||
- white - normal
|
||||
- cyan - headers
|
||||
- red - warning, error, catastrophic failures
|
||||
- yellow - informative (to make things stick out from white blob)
|
||||
- green - successful, (to make things stick out from white blob)
|
||||
- magenta - device side messages
|
||||
|
||||
|
||||
### Styled header
|
||||
^[Top](#top)
|
||||
```
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
PrintAndLogEx(INFO, "--- " _CYAN_("Tag Information") " ---------------------------");
|
||||
PrintAndLogEx(INFO, "-------------------------------------------------------------");
|
||||
```
|
||||
For more examples, see also all **-h** helptext now in the LUA scripts.
|
||||
For the command help texts using _YELLOW_ for the example makes it very easy to see what is the command vs the description.
|
||||
|
||||
### non styled header
|
||||
^[Top](#top)
|
||||
Most commands doesn't use a header yet. We added it to make it standout (ie: yellow, green) of the informative tidbits in the output of a command.
|
||||
|
||||
|
||||
## Proxspace
|
||||
^[Top](#top)
|
||||
Proxspace has support for colors.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue