Versions in this module Expand all Collapse all v3 v3.1.0 Jul 15, 2019 Changes in this version + const COLLAPSED + const EXPANDED type RootTheme + Tree TreeTheme + type TreeTheme struct + Collapsed rune + Expanded rune + Text Style v3.0.0 Mar 7, 2019 Changes in this version + const BOTTOM_LEFT + const BOTTOM_RIGHT + const DOT + const DOWN_ARROW + const ELLIPSES + const HORIZONTAL_DASH + const HORIZONTAL_DOWN + const HORIZONTAL_LINE + const HORIZONTAL_UP + const QUOTA_LEFT + const QUOTA_RIGHT + const TOP_LEFT + const TOP_RIGHT + const UP_ARROW + const VERTICAL_DASH + const VERTICAL_LEFT + const VERTICAL_LINE + const VERTICAL_RIGHT + var BARS = [...]rune + var BRAILLE = [4][2]rune + var BRAILLE_OFFSET = '\u2800' + var CellClear = Cell + var DOUBLE_BRAILLE = map[[2]int]rune + var IRREGULAR_BLOCKS = [...]rune + var SHADED_BLOCKS = [...]rune + var SINGLE_BRAILLE_LEFT = [4]rune + var SINGLE_BRAILLE_RIGHT = [4]rune + var StandardColors = []Color + var StandardStyles = []Style + var StyleClear = Style + var StyleParserColorMap = map[string]Color + var Theme = RootTheme + func AbsInt(x int) int + func CellsToString(cells []Cell) string + func Clear() + func Close() + func FloorFloat64(x float64) float64 + func GetMaxFloat64From2dSlice(slices [][]float64) (float64, error) + func GetMaxFloat64FromSlice(slice []float64) (float64, error) + func GetMaxIntFromSlice(slice []int) (int, error) + func Init() error + func InterfaceSlice(slice interface{}) []interface + func MaxFloat64(x, y float64) float64 + func MaxInt(x, y int) int + func MinFloat64(x, y float64) float64 + func MinInt(x, y int) int + func PollEvents() <-chan Event + func Render(items ...Drawable) + func RoundFloat64(x float64) float64 + func SplitCells(cells []Cell, r rune) [][]Cell + func SumFloat64Slice(data []float64) float64 + func SumIntSlice(slice []int) int + func TerminalDimensions() (int, int) + func TrimString(s string, w int) string + type Alignment uint + const AlignCenter + const AlignLeft + const AlignRight + type BarChartTheme struct + Bars []Color + Labels []Style + Nums []Style + type Block struct + Border bool + BorderBottom bool + BorderLeft bool + BorderRight bool + BorderStyle Style + BorderTop bool + Inner image.Rectangle + PaddingBottom int + PaddingLeft int + PaddingRight int + PaddingTop int + Title string + TitleStyle Style + func NewBlock() *Block + func (self *Block) Draw(buf *Buffer) + func (self *Block) GetRect() image.Rectangle + func (self *Block) SetRect(x1, y1, x2, y2 int) + type BlockTheme struct + Border Style + Title Style + type Buffer struct + CellMap map[image.Point]Cell + func NewBuffer(r image.Rectangle) *Buffer + func (self *Buffer) Fill(c Cell, rect image.Rectangle) + func (self *Buffer) GetCell(p image.Point) Cell + func (self *Buffer) SetCell(c Cell, p image.Point) + func (self *Buffer) SetString(s string, style Style, p image.Point) + type Canvas struct + func NewCanvas() *Canvas + func (self *Canvas) Draw(buf *Buffer) + func (self *Canvas) SetLine(p0, p1 image.Point, color Color) + func (self *Canvas) SetPoint(p image.Point, color Color) + type Cell struct + Rune rune + Style Style + func NewCell(rune rune, args ...interface{}) Cell + func ParseStyles(s string, defaultStyle Style) []Cell + func RunesToStyledCells(runes []rune, style Style) []Cell + func TrimCells(cells []Cell, w int) []Cell + func WrapCells(cells []Cell, width uint) []Cell + type CellWithX struct + Cell Cell + X int + func BuildCellWithXArray(cells []Cell) []CellWithX + type Color int + const ColorBlack + const ColorBlue + const ColorClear + const ColorCyan + const ColorGreen + const ColorMagenta + const ColorRed + const ColorWhite + const ColorYellow + func SelectColor(colors []Color, index int) Color + type Drawable interface + Draw func(*Buffer) + GetRect func() image.Rectangle + SetRect func(int, int, int, int) + type Event struct + ID string + Payload interface{} + Type EventType + type EventType uint + const KeyboardEvent + const MouseEvent + const ResizeEvent + type GaugeTheme struct + Bar Color + Label Style + type Grid struct + Items []*GridItem + func NewGrid() *Grid + func (self *Grid) Draw(buf *Buffer) + func (self *Grid) Set(entries ...interface{}) + type GridItem struct + Entry interface{} + HeightRatio float64 + IsLeaf bool + Type gridItemType + WidthRatio float64 + XRatio float64 + YRatio float64 + func NewCol(ratio float64, i ...interface{}) GridItem + func NewRow(ratio float64, i ...interface{}) GridItem + type ListTheme struct + Text Style + type Modifier uint + const ModifierBold + const ModifierClear + const ModifierReverse + const ModifierUnderline + type Mouse struct + Drag bool + X int + Y int + type ParagraphTheme struct + Text Style + type PieChartTheme struct + Slices []Color + type PlotTheme struct + Axes Color + Lines []Color + type Resize struct + Height int + Width int + type RootTheme struct + BarChart BarChartTheme + Block BlockTheme + Default Style + Gauge GaugeTheme + List ListTheme + Paragraph ParagraphTheme + PieChart PieChartTheme + Plot PlotTheme + Sparkline SparklineTheme + StackedBarChart StackedBarChartTheme + Tab TabTheme + Table TableTheme + type SparklineTheme struct + Line Color + Title Style + type StackedBarChartTheme struct + Bars []Color + Labels []Style + Nums []Style + type Style struct + Bg Color + Fg Color + Modifier Modifier + func NewStyle(fg Color, args ...interface{}) Style + func SelectStyle(styles []Style, index int) Style + type TabTheme struct + Active Style + Inactive Style + type TableTheme struct + Text Style Other modules containing this package github.com/gizak/termui