diff options
| author | adamdottv <[email protected]> | 2025-05-02 13:14:41 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-05-02 15:24:47 -0500 |
| commit | b2f24e38eda018b464def477880e9db5bb51b515 (patch) | |
| tree | d02a6e74fe6024feb078e201aa2113a8001a69d8 /internal/tui/styles | |
| parent | 49037e7b28b9f76e32cef99e81ba33e2832290a5 (diff) | |
| download | opencode-b2f24e38eda018b464def477880e9db5bb51b515.tar.gz opencode-b2f24e38eda018b464def477880e9db5bb51b515.zip | |
feat: better diagnostic visuals in status bar
Diffstat (limited to 'internal/tui/styles')
| -rw-r--r-- | internal/tui/styles/icons.go | 13 |
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 "" + } +} |
