diff --git a/webpage/BetterBash/src/App.vue b/webpage/BetterBash/src/App.vue index 073f4cd..6cd332f 100644 --- a/webpage/BetterBash/src/App.vue +++ b/webpage/BetterBash/src/App.vue @@ -38,6 +38,14 @@ + + +
- This tool allows you to customize the colors of your bash PS1 prompt. - Select different terminal colors for each component and individually toggle - "light" (bright) or "bold" styles to see how they - look in the preview. You can share your theme using the URL generated above. -
-The string after "betterba.sh/" in the URL is an 8-character code representing your theme. Here's how it works:
-(base_color_0_7 << 2) | (light_bit << 1) | bold_bit.C1_b4 C1_b3 C1_b2 C1_b1 C1_b0 C2_b4 C2_b3 C2_b2C2_b1 C2_b0 C3_b4 C3_b3 C3_b2 C3_b1 C3_b0 C4_b4C4_b3 C4_b2 C4_b1 C4_b0 C5_b4 C5_b3 C5_b2 C5_b1C5_b0 C6_b4 C6_b3 C6_b2 C6_b1 C6_b0 C7_b4 C7_b3C7_b2 C7_b1 C7_b0 C8_b4 C8_b3 C8_b2 C8_b1 C8_b0C9_b4 C9_b3 C9_b2 C9_b1 C9_b0 0 0 0Cn_bx is bit x of component n's 5-bit value, C1=Primary, C2=Secondary, etc.)
- + is replaced with -, / with _, and padding = are removed. This produces the 8-character code.To decode, reverse the process: Base64 decode, unpack bytes into 5-bit values, then extract base color, light, and bold states for each component.
+ +