summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/styles
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/styles')
-rw-r--r--internal/tui/styles/icons.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/tui/styles/icons.go b/internal/tui/styles/icons.go
index a79ef8bb4..8a49fce80 100644
--- a/internal/tui/styles/icons.go
+++ b/internal/tui/styles/icons.go
@@ -9,3 +9,16 @@ const (
HintIcon string = "ⓗ"
SpinnerIcon string = "⟳"
)
+
+// CircledDigit returns the Unicode circled digit/number for 0‑20.
+// out‑of‑range → "".
+func CircledDigit(n int) string {
+ switch {
+ case n == 0:
+ return "\u24EA" // ⓪
+ case 1 <= n && n <= 20:
+ return string(rune(0x2460 + n - 1)) // ①–⑳
+ default:
+ return ""
+ }
+}