screen

package
v0.0.0-...-07cce8e Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentBlock

type ContentBlock struct {
	// contains filtered or unexported fields
}

type Row

type Row struct {
	// contains filtered or unexported fields
}

type Screen

type Screen struct {
	// contains filtered or unexported fields
}

func NewScreen

func NewScreen(width int, height int) Screen

func (*Screen) AppendRow

func (sc *Screen) AppendRow(s string, x int, style tcell.Style)

appends a row at height = current_max_height + 1

func (*Screen) PrintAll

func (sc *Screen) PrintAll(s tcell.Screen)

type Table

type Table struct {
	// contains filtered or unexported fields
}

func NewTable

func NewTable(headers []string) Table

func (*Table) AddRow

func (t *Table) AddRow(row map[string]string)

func (Table) WriteToScreen

func (t Table) WriteToScreen(sc *Screen, selected int, plainStyle tcell.Style, selectedStyle tcell.Style, boldStyle tcell.Style)

Jump to

Keyboard shortcuts

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