termcolor

package
v0.20260522.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundRGB

func BackgroundRGB(r, g, b uint8) string

func ColorizeImgTags

func ColorizeImgTags(s string) string

func ColorizeImgTagsReplInput added in v0.20260520.1

func ColorizeImgTagsReplInput(s string) string

func Enabled added in v0.20260522.0

func Enabled() bool

func ForegroundRGB

func ForegroundRGB(r, g, b uint8) string

func FormatWorkedDuration

func FormatWorkedDuration(secs float64) string

func Init added in v0.20260522.0

func Init(opts InitOptions)

func Plain added in v0.20260522.0

func Plain(s string) string

func ResetSeq added in v0.20260522.0

func ResetSeq() string

func ThoughtForSuffix

func ThoughtForSuffix(secs float64) string

func ToolHeaderLine

func ToolHeaderLine(toolName, body string) string

func ToolLine

func ToolLine(toolName, body string) string

func UsageTokensLine

func UsageTokensLine(contextPromptTok, lastUserPromptTok, reasoningTokens, responseTokens, totalTokens int64, outputTPS, ttftSecs, promptTPS float64, contextEstimated bool, turnWallSecs float64) string

func WelcomeUsageTotals

func WelcomeUsageTotals(userTok, reasoningTok, responseTok, totalTok int64) string

func WrapAssistant

func WrapAssistant(s string) string

func WrapBoldGold

func WrapBoldGold(s string) string

func WrapContext

func WrapContext(s string) string

func WrapImgTag

func WrapImgTag(tag string) string

func WrapRed

func WrapRed(s string) string

func WrapThinking

func WrapThinking(s string) string

func WrapTool

func WrapTool(s string) string

func WrapUser

func WrapUser(s string) string

func WrapUserReadline added in v0.20260522.0

func WrapUserReadline(s string) string

func WrapWhite

func WrapWhite(s string) string

Types

type InitOptions added in v0.20260522.0

type InitOptions struct {
	Out     io.Writer
	NoColor bool
}

type ToolLineWriter

type ToolLineWriter struct {
	W io.Writer
	// contains filtered or unexported fields
}

func NewToolLineWriter

func NewToolLineWriter(w io.Writer) *ToolLineWriter

func (*ToolLineWriter) Flush

func (w *ToolLineWriter) Flush() error

func (*ToolLineWriter) Write

func (w *ToolLineWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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