Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions packages/tui/src/util/presentation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const logo = {
left: [" ", "█▀▀█ █▀▀█ █▀▀█ █▀▀▄", "█__█ █__█ █^^^ █__█", "▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀~~▀"],
right: [" ▄ ", "█▀▀▀ █▀▀█ █▀▀█ █▀▀█", "█___ █__█ █__█ █^^^", "▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀"],
}
import { logo } from "../shuv-logo"

export const presentationLogo = logo

const reset = "\x1b[0m"
const bold = "\x1b[1m"
Expand All @@ -19,9 +18,9 @@ function wordmark(pad = "") {
})
.join("")

return logo.left.map((line, index) => {
return presentationLogo.left.map((line, index) => {
const left = draw(line, dim, "\x1b[38;5;235m", "\x1b[48;5;235m")
const right = draw(logo.right[index] ?? "", reset, "\x1b[38;5;238m", "\x1b[48;5;238m")
const right = draw(presentationLogo.right[index] ?? "", reset, "\x1b[38;5;238m", "\x1b[48;5;238m")
return `${pad}${left} ${right}`
})
}
Expand Down
7 changes: 6 additions & 1 deletion packages/tui/test/util/presentation.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { expect, test } from "bun:test"
import { sessionEpilogue } from "../../src/util/presentation"
import { logo } from "../../src/shuv-logo"
import { presentationLogo, sessionEpilogue } from "../../src/util/presentation"

test("uses the canonical shuvcode wordmark", () => {
expect(presentationLogo).toEqual(logo)
})

test("formats session continuation summary", () => {
const epilogue = sessionEpilogue({ title: "A session", sessionID: "ses_123" })
Expand Down
Loading