aboutsummaryrefslogtreecommitdiff
path: root/data/help/prompt.yaml
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-16 23:37:50 -0400
committerhistoria <[not public]>2026-06-16 23:37:50 -0400
commit389e307f205f9b7edf604fb9f86e1038ead736ef (patch)
tree595095b5877cc2b0513d31fb126303d8796cc311 /data/help/prompt.yaml
parent085e728d22a3369bd110b77409914cfbe9ebe611 (diff)
downloadthehouseoficarus-389e307f205f9b7edf604fb9f86e1038ead736ef.tar.gz
feat: major xterm256 color overhaul, see worldbuilding docs.
Diffstat (limited to 'data/help/prompt.yaml')
-rw-r--r--data/help/prompt.yaml26
1 files changed, 14 insertions, 12 deletions
diff --git a/data/help/prompt.yaml b/data/help/prompt.yaml
index 95d852b..9af6b01 100644
--- a/data/help/prompt.yaml
+++ b/data/help/prompt.yaml
@@ -1,9 +1,12 @@
name: "prompt"
-category: "Options"
+category: "General"
description: |
- Customize your command prompt.
+ Customize your command prompt. Prompts are per-character.
- Set via: option prompt <string>
+ Usage:
+ prompt Show current prompt
+ prompt <value> Set a custom prompt
+ prompt reset Restore default "> "
Your prompt string can include variables and color blocks.
@@ -21,15 +24,14 @@ description: |
Use %% for a literal % sign.
- Color blocks use the same format as the color command:
- {fg=green bold}text{/}
+ Color blocks:
+ {<0-255> [bold] [dim] [underline]}text{/}
+ {g:<a>,<b>[,<c>...]}gradient text{/}
- A color block starts with {color_string} and ends with {/}.
+ A color block starts with {color_spec} and ends with {/}.
Examples:
- option prompt "> "
- option prompt "{fg=cyan}%h/%Hhp $%c %s{/} >"
- option prompt "<{fg=green}%h{/}/{fg=red}%H{/}hp> "
-
- To reset to the default "> ":
- option prompt "> "
+ prompt >
+ prompt {6}%h/%Hhp $%c %s{/} >
+ prompt <{2}%h{/}/{1}%H{/}hp>
+ prompt {208 bold}%h/%Hhp{/} >