Skip to content

Commit c5eefd1

Browse files
authored
Fix: Improve Help UI Readability (Issue #99) (#117)
1 parent 77a6b3b commit c5eefd1

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

  • packages/opencode/src/cli

‎packages/opencode/src/cli/ui.ts‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { NamedError } from "../util/error"
33

44
export namespace UI {
55
const LOGO = [
6-
`█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀`,
7-
`█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀`,
8-
`▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀`,
6+
[`█▀▀█ █▀▀█ █▀▀ █▀▀▄ `, `█▀▀ █▀▀█ █▀▀▄ █▀▀`],
7+
[`█░░█ █░░█ █▀▀ █░░█ `, `█░░ █░░█ █░░█ █▀▀`],
8+
[`▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ `, `▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀`],
99
]
1010

1111
export const CancelledError = NamedError.create("UICancelledError", z.void())
@@ -48,12 +48,10 @@ export namespace UI {
4848
const result = []
4949
for (const row of LOGO) {
5050
if (pad) result.push(pad)
51-
for (let i = 0; i < row.length; i++) {
52-
const color =
53-
i > 18 ? Bun.color("white", "ansi") : Bun.color("gray", "ansi")
54-
const char = row[i]
55-
result.push(color + char)
56-
}
51+
result.push(Bun.color("gray", "ansi"))
52+
result.push(row[0])
53+
result.push("\x1b[0m")
54+
result.push(row[1])
5755
result.push("\n")
5856
}
5957
return result.join("").trimEnd()

0 commit comments

Comments
 (0)