MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / BannerText

Function BannerText

internal/ui/banner.go:33–44  ·  view source on GitHub ↗

BannerText returns the banner as a string for callers that want to pre-populate a scrollback buffer (the TUI program) rather than print.

(width int)

Source from the content-addressed store, hash-verified

31// BannerText returns the banner as a string for callers that want to
32// pre-populate a scrollback buffer (the TUI program) rather than print.
33func BannerText(width int) string {
34 if width == 0 {
35 width = bigBannerMinWidth
36 }
37 if width >= bigBannerMinWidth {
38 return BoldCyan + bigBanner + Reset +
39 Dimmed(" build your own coding agent") + "\n" +
40 Dimmed(" type a message · /help for commands · ctrl-d to exit") + "\n\n"
41 }
42 return "\n" + Cyan(" BETTATECH") + Dimmed(" · build your own coding agent") + "\n" +
43 Dimmed(" type a message or /help") + "\n\n"
44}
45
46// AnimatedBanner returns the banner with a "shine" highlight peaked at
47// column shineCol. Pass shineCol == -1 (or any out-of-range value) to get

Callers 3

NewProgramFunction · 0.85
PrintBannerFunction · 0.85
AnimatedBannerFunction · 0.85

Calls 2

DimmedFunction · 0.85
CyanFunction · 0.85

Tested by

no test coverage detected