pkg.re/essentialkaos/ek@v12.36.0+incompatible/fmtc/README.md (about) 1 ### `fmtc` color tags 2 3 #### Modificators 4 5 | Name | Tag | Code | 6 |-----------|-------|------| 7 | Reset | `{!}` | `0` | 8 | Bold | `{*}` | `1` | 9 | Dim | `{^}` | `2` | 10 | Underline | `{_}` | `4` | 11 | Blink | `{~}` | `5` | 12 | Reverse | `{@}` | `7` | 13 14 #### 8/16 Colors 15 16 ##### Foreground (Text) 17 18 | Name | Tag | Code | Color Preview | 19 |---------------|-------|-------|---------------| 20 | Black | `{d}` | `30` |  | 21 | Red | `{r}` | `31` |  | 22 | Green | `{g}` | `32` |  | 23 | Yellow | `{y}` | `33` |  | 24 | Blue | `{b}` | `34` |  | 25 | Magenta | `{m}` | `35` |  | 26 | Cyan | `{c}` | `36` |  | 27 | Light gray | `{s}` | `37` |  | 28 | Dark gray | `{s-}`| `90` |  | 29 | Light red | `{r-}`| `91` |  | 30 | Light green | `{g-}`| `92` |  | 31 | Light yellow | `{y-}`| `93` |  | 32 | Light blue | `{b-}`| `94` |  | 33 | Light magenta | `{m-}`| `95` |  | 34 | Light cyan | `{c-}`| `96` |  | 35 | White | `{w-}`| `97` |  | 36 37 ##### Background 38 39 | Name | Tag | Code | Color Preview | 40 |---------------|-------|--------|---------------| 41 | Black | `{D}` | `40` |  | 42 | Red | `{R}` | `41` |  | 43 | Green | `{G}` | `42` |  | 44 | Yellow | `{Y}` | `43` |  | 45 | Blue | `{B}` | `44` |  | 46 | Magenta | `{M}` | `45` |  | 47 | Cyan | `{C}` | `46` |  | 48 | Light gray | `{S}` | `47` |  | 49 | Dark gray | `{S-}`| `100` |  | 50 | Light red | `{R-}`| `101` |  | 51 | Light green | `{G-}`| `102` |  | 52 | Light yellow | `{Y-}`| `103` |  | 53 | Light blue | `{B-}`| `104` |  | 54 | Light magenta | `{M-}`| `105` |  | 55 | Light cyan | `{C-}`| `106` |  | 56 | White | `{W-}`| `107` |  | 57 58 #### 88/256 Colors 59 60 ##### Foreground (Text) 61 62 Tag: `{#code}` 63 64  65 66 _Image from [FLOZz' MISC](https://misc.flogisoft.com/bash/tip_colors_and_formatting) website_ 67 68 ##### Background 69 70 Tag: `{%code}` 71 72  73 74 _Image from [FLOZz' MISC](https://misc.flogisoft.com/bash/tip_colors_and_formatting) website_ 75 76 #### Examples 77 78 ``` 79 {r*}Important!{!*} File deleted!{!} 80 ┬ ┬─ ┬ 81 │ │ │ 82 │ │ └ Reset everything 83 │ │ 84 │ └ Unset bold modificator 85 │ 86 └ Bold, red text 87 ``` 88 89 ``` 90 {rG*}OMG!{!} Check your mail{!} 91 ┬── ┬ 92 │ │ 93 │ └ Reset everything 94 │ 95 └ Bold, red text with green background 96 ``` 97 98 ``` 99 {r}File {_}file.log{!_} deleted{!} 100 ┬ ┬ ┬─ ┬ 101 │ │ │ │ 102 │ │ │ └ Reset everything 103 │ │ │ 104 │ │ └ Unset underline modificator 105 │ │ 106 │ └ Set underline modificator 107 │ 108 └ Set text color to red 109 ``` 110 111 ``` 112 {*@y}Warning!{!@} Can't find user bob.{!} 113 ┬── ┬─ ┬ 114 │ │ │ 115 │ │ └ Reset everything 116 │ │ 117 │ └ Unset reverse modificator (keep yellow color) 118 │ 119 └ Bold text with yellow background (due to reverse modificator) 120 ``` 121 122 ``` 123 {#213}{%240}Hi all!{!} 124 ┬─── ┬─── ┬ 125 │ │ │ 126 │ │ └ Reset everything 127 │ │ 128 │ └ Set background color to grey 129 │ 130 └ Set text color to pink 131 ```