Help us shape the future of Go! Take the 2026 Go Developer Survey

pterm

package
v1.3.100 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package pterm cmd/skywire-cli/cliutil/pterm/pterm_native.go c5-cli-util

Shadow of github.com/pterm/pterm exposing exactly the surface the skywire CLI uses. Command code imports THIS package with the same package name, so call sites are byte-identical; on native builds everything aliases the real pterm, and on js/wasm (pterm's keyboard dependency has no js support) a plain-ANSI implementation stands in (pterm_js.go). Add aliases here — and a js twin there — when a command needs more of pterm.

Index

Constants

This section is empty.

Variables

View Source
var (
	Red     = pterm.Red
	Green   = pterm.Green
	Blue    = pterm.Blue
	Cyan    = pterm.Cyan
	Magenta = pterm.Magenta
	Yellow  = pterm.Yellow
	White   = pterm.White
	Black   = pterm.Black
)

Sprint-style color functions.

View Source
var (
	BgRed     = pterm.BgRed
	BgBlue    = pterm.BgBlue
	BgMagenta = pterm.BgMagenta
)

Background styles (value.Sprint(...) usage).

View Source
var DefaultTree = pterm.DefaultTree

DefaultTree is pterm.DefaultTree.

View Source
var Println = pterm.Println

Println mirrors pterm.Println.

Functions

This section is empty.

Types

type LeveledList

type LeveledList = pterm.LeveledList

LeveledList is pterm.LeveledList.

type LeveledListItem

type LeveledListItem = pterm.LeveledListItem

LeveledListItem is pterm.LeveledListItem.

type TreeNode

type TreeNode = pterm.TreeNode

TreeNode is pterm.TreeNode.

Jump to

Keyboard shortcuts

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