termutils

package module
v0.0.0-...-450d355 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 1 Imported by: 0

README

termutils

A library that helps with drawing terminal ui bits

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawBoxBorder

func DrawBoxBorder(x, y, w, h int, t Border)

DrawBoxBorder will draw a box border

func DrawBoxBorderColor

func DrawBoxBorderColor(x, y, w, h int, t Border, fg, bg termbox.Attribute)

DrawBoxBorderColor will draw a box border with color attributes

func DrawLine

func DrawLine(x, y, width int, text string, fg, bg termbox.Attribute)

func DrawList

func DrawList(x, y, width, height int, list []string, fg, bg termbox.Attribute)

func DrawMultiline

func DrawMultiline(x, y, width, height int, text string, fg, bg termbox.Attribute)

func DrawScrollbar

func DrawScrollbar(x, y, h, min, max, winmin, winmax int)

DrawScrollbar This will draw a thin scrollbar

func DrawText

func DrawText(x, y int, text string, fg, bg termbox.Attribute)

DrawText will draw a line of text

Types

type Border

type Border int
const (
	//BorderLight Light Border
	BorderLight Border = iota
	//BorderLightArc Light Arc Border
	BorderLightArc
	//BorderLightDoubleLine Light Border with double line
	BorderLightDoubleLine
	//BorderLightDoubleDash Light Border with double dash
	BorderLightDoubleDash
	//BorderLightTripleDash Light Border with triple dash
	BorderLightTripleDash
	//BorderLightQuadDash Light Border with quad dash
	BorderLightQuadDash
	//BorderThick Thick Border
	BorderThick
	//BorderThickDoubleDash Thick border with a double dash
	BorderThickDoubleDash
	//BorderThickTripleDash Thick border with a triple dash
	BorderThickTripleDash
	//BorderThickQuadDash Thick border with a quad dash
	BorderThickQuadDash
)

Jump to

Keyboard shortcuts

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