Documentation
¶
Index ¶
- func Block(contents string, targetLineLength, targetOutputLines int) string
- func ColorMinimap(data string, width, height int, m mode.Mode, highlightIndex int) (string, error)
- func DrawBackgroundMinimap(c *vt100.Canvas, data string, x, y, width, height int, highlightIndex int, ...) error
- func Simple(contents string, targetLineLength, targetOutputLines int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorMinimap ¶ added in v1.1.0
ColorMinimap returns a colored text representation of the given text. width and height are the number of characters and lines for the minimap. highlightIndex is the line index to be highlighted in the minimap. Use -1 for no highlight.
func DrawBackgroundMinimap ¶ added in v1.2.0
func DrawBackgroundMinimap(c *vt100.Canvas, data string, x, y, width, height int, highlightIndex int, contentColor, spaceColor, highlightColor vt100.AttributeColor) error
DrawBackgroundMinimap draws a colored representation of the given text onto a vt100.Canvas.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.