DisplayUtils

Formatting helpers for CLI / TUI display.

Functions

Link copied to clipboard
fun headingLabel(degrees: Double): String

Converts a compass heading in degrees to a human-readable label, e.g. "NE (45°)".

Link copied to clipboard
fun socBar(pct: Int): String

Renders a 20-character block bar representing a state-of-charge percentage (0-100).