ui library

Shared ANSI color/style utilities using nocterm's TextStyle + Colors.

These helpers write directly to stdout (plain terminal output, not a TUI runApp session), so the output persists in the scrollback buffer.

Classes

CopyButton
A button that copies data to the clipboard.
HoverButton

Functions

blue(String t) String
bold(String t) String
boldCyan(String t) String
boldGreen(String t) String
boldRed(String t) String
copyToClipboard(String text) Future<bool>
Copies text to the system clipboard. Returns true on success, false on failure.
cyan(String t) String
dim(String t) String
findNitroProjectRoot() Directory?
Searches for a Nitro project root. Checks the current directory first, then direct subdirectories. Returns the Directory if a pubspec.yaml containing 'nitro' is found.
gray(String t) String
green(String t) String
magenta(String t) String
red(String t) String
runStreaming(String executable, List<String> args, {String? workingDirectory}) Future<int>
Runs executable and streams its stdout/stderr to the terminal in real time. Returns the exit code.
streamProcess(String executable, List<String> args, {String? workingDirectory}) Stream<String>
Runs executable and returns a stream of its interleaved stdout/stderr.
yellow(String t) String