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)
| 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. |
| 33 | func 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 |
no test coverage detected