Add wish conventional-configurable-text-styling
Marco Ricci

Marco Ricci commited on 2025-06-09 21:33:44
Zeige 2 geänderte Dateien mit 31 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,29 @@
1
+# `derivepassphrase` wish conventional-configurable-text-styling
2
+
3
+???+ question "Wish details: `derivepassphrase vault` should support conventional and configurable text styling"
4
+    <table id="bug-summary" markdown>
5
+        <tr><th scope=col>Class<td><i>wish</i><td>This is a request for an enhancement.
6
+        <tr><th scope=col>Priority<td><i>medium</i><td>This should be fixed one day.
7
+        <tr><th scope=col>Difficulty<td><i>taxing</i><td>Needs external things we don't have (standards, users etc).
8
+        <tr><th scope=col>Present-in<td colspan=2><b>0.5</b>
9
+    </table>
10
+
11
+`derivepassphrase` intends to support text styling (color, boldface) for warning and error messages (and possibly for other future uses) for TTY devices.
12
+**The question is, how exactly?
13
+The conventions in this regard are still in flux.**
14
+
15
+  * Color usage is generally tri-state: `--color=always|auto|never` (GNU `grep` et al.) or `--color=yes|no|auto` (pytest).
16
+    Which terminology should be used?
17
+
18
+  * For color usage, we should support the `NO_COLOR` and `FORCE_COLOR` environment variables to override the auto-detected result.
19
+    Which variable should take precedence, `NO_COLOR` or `FORCE_COLOR`?
20
+    (The `FORCE_COLOR` FAQ site gives `FORCE_COLOR` precedence over `NO_COLOR`, Python 3.13 gives `NO_COLOR` precedence.)
21
+
22
+  * Should text decorations and text styling (bold, underline) be treated equivalently to color?
23
+    Should this be handled by the same "color" options, or do we need separate "styling" options?
24
+
25
+  * Should we support the [`TTY_COMPATIBLE=1|0|<unset>` variable as proposed by Rich](https://github.com/Textualize/rich/issues/2924#issuecomment-2757673602)?
26
+
27
+* * *
28
+
29
+Until these conventions have stabilized, as a baseline, `derivepassphrase` shall emit device-independent output without color or text styling, in adherence to [Eric S. Raymond's Rule of Composition](http://www.catb.org/~esr/writings/taoup/html/ch01s06.html#id2877684).
... ...
@@ -11,6 +11,7 @@
11 11
       - [windows-ssh-agent-support][]{: .scheduled-next }
12 12
 
13 13
 ???+ question "things to add"
14
+      - [conventional-configurable-text-styling][]{: .unscheduled }
14 15
       - [other-derivation-schemes][]{: .unscheduled }
15 16
 
16 17
 ??? success "fixed things"
... ...
@@ -49,6 +50,7 @@
49 50
   [concurrency-audit]: concurrency-audit.md
50 51
   [concurrency-testing-in-test-suite]: concurrency-testing-in-test-suite.md
51 52
   [configuration-directory-must-exist]: configuration-directory-must-exist.md
53
+  [conventional-configurable-text-styling]: conventional-configurable-text-styling.md
52 54
   [export-vault-formats]: export-vault-formats.md
53 55
   [exporter-script-as-subcommand]: exporter-script-as-subcommand.md
54 56
   [fail-gracefully-without-af-unix]: fail-gracefully-without-af-unix.md
55 57