ui

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorizeDiff

func ColorizeDiff(diff string) string

ColorizeDiff adds ANSI colors to a unified diff: hunk headers cyan, additions green, deletions red. File headers (---/+++) are colored with the deletion/addition colors, respectively.

func IsTTY

func IsTTY(w io.Writer) bool

IsTTY reports whether w is an interactive terminal.

Note: any character device (e.g. /dev/null) reports as a TTY.

Types

This section is empty.

Jump to

Keyboard shortcuts

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