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 ¶
Click to show internal directories.
Click to hide internal directories.