tmuxformat

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tmuxformat builds and decodes multi-field tmux format output.

Index

Constants

View Source
const Separator = "|"

Separator is printable because tmux versions disagree about how C0 bytes in formatted output are represented. Fields() q-escapes this byte in values.

Variables

This section is empty.

Functions

func Fields

func Fields(names ...string) string

Fields returns one tmux format expression whose values can be decoded with Split. The q modifier escapes separators, whitespace, backslashes, and control bytes without changing the number of output fields.

func Split

func Split(line string) []string

Split separates and unescapes output produced by Fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

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