powerline

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: GPL-3.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment struct {
	Name string
	// Content is the text to be displayed on the command line prompt
	Content string
	// Foreground is the text color (see https://misc.flogisoft.com/bash/tip_colors_and_formatting#background1)
	Foreground uint8
	// Background is the color of the filling background (see https://misc.flogisoft.com/bash/tip_colors_and_formatting#background1)
	Background uint8
	// Separator is the character to be used when generating multiple segments to override the default separator
	Separator string
	// SeparatorForeground is the character to be used when generating multiple segments to override the default foreground separator
	SeparatorForeground uint8
	// Priority is the priority of the segment. The higher, the less probable the segment will be dropped if the total length is too long
	Priority int
	// HideSeparators indicated not to display any separator with next segment.
	HideSeparators bool
	Width          int
	// NewLine defines a newline segment to break the powerline in multi lines
	NewLine bool
}

Segment describes an information to display on the command line prompt

func (Segment) ComputeWidth

func (s Segment) ComputeWidth(condensed bool) int

Jump to

Keyboard shortcuts

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