banner

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README

banner

Go Reference License

ANSI block-art logos and terminal symbols for BlueFunda CLI tools. Provides a full stacked "BLUE / FUNDA" logo, a compact BF monogram, a single-line PS1-safe symbol mark, and a dedicated ABAPer pixel-font logo — with automatic color detection (NO_COLOR / non-TTY aware).

Install

go get github.com/bluefunda/banner@latest

Functions

Function Description
PrintMain() Full stacked "BLUE / FUNDA" block-art logo
PrintShort(product, version string) BF monogram with product name and version
Short(info1, info2, info3 string) string BF monogram with three custom info lines (pre-colored)
PrintSymbol() Single-line "▲ BlueFunda" mark for PS1 / log prefixes
Symbol() string Single-line mark as a string for embedding
PrintAbaper() Full 6-row ABAPer block-art logo
AbaperLines() [6]string 6 rows of the colored ABAPer logo as strings
AbaperShort(info1, info2, info3 string) string ABAPer logo with three info strings appended
AbaperCompact(info1, info2, info3 string) string Compact 3-line AB pixel-font mark with info strings
PrintAbaperCompact() Compact 3-line AB pixel-font mark
NoColor Set to true to disable ANSI codes (auto-detected)

Usage

import "github.com/bluefunda/banner/pkg/banner"

// Full stacked logo
banner.PrintMain()

// BF monogram + product info
banner.PrintShort("ABAPer", "v1.2.0")
banner.PrintShort("XPro", "v3.0.1")
banner.PrintShort("BlueRequests", "v2.1.0")
banner.PrintShort("BlueFunda AI", "v0.9.0")

// Single-line symbol (PS1, log prefix, tmux)
banner.PrintSymbol()
prefix := banner.Symbol()  // embed in strings

// Disable color (also auto-disabled on NO_COLOR env var or non-TTY stdout)
banner.NoColor = true

Run the demo

go run ./cmd/banner-demo/main.go

Brand colors

Element Hex ANSI
"Blue" letterform #1E64E7 \033[1;94m bold bright-blue
"Funda" letterform #1A305F \033[34m standard blue (navy)
Tagline \033[2;34m dim blue

License

Apache 2.0 — see LICENSE.

Documentation

Overview

Package banner provides ANSI block-art logos and terminal symbols for BlueFunda CLI tools.

Variants

  • [PrintMain] — full stacked "BLUE / FUNDA" logo
  • [PrintShort] — compact BF monogram with product name and version
  • [PrintSymbol] — single-line "▲ BlueFunda" mark for PS1 / log prefixes
  • [AbaperCompact] — 3-line compact AB pixel-font mark for the ABAPer CLI

Color is auto-disabled when stdout is not a TTY or NO_COLOR is set. Override with [NoColor].

Directories

Path Synopsis
cmd
banner-demo command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL