Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2019 v0.9.0 Apr 29, 2019 Changes in this version + const AlignCenter + const AlignLeft + const AlignRight + const BoxDrawingsDoubleDownAndHorizontal + const BoxDrawingsDoubleDownAndLeft + const BoxDrawingsDoubleDownAndRight + const BoxDrawingsDoubleHorizontal + const BoxDrawingsDoubleUpAndHorizontal + const BoxDrawingsDoubleUpAndLeft + const BoxDrawingsDoubleUpAndRight + const BoxDrawingsDoubleVertical + const BoxDrawingsDoubleVerticalAndHorizontal + const BoxDrawingsDoubleVerticalAndLeft + const BoxDrawingsDoubleVerticalAndRight + const BoxDrawingsDownDoubleAndHorizontalSingle + const BoxDrawingsDownDoubleAndLeftSingle + const BoxDrawingsDownDoubleAndRightSingle + const BoxDrawingsDownHeacyAndRightUpLight + const BoxDrawingsDownHeavyAndHorizontalLight + const BoxDrawingsDownHeavyAndLeftLight + const BoxDrawingsDownHeavyAndLeftUpLight + const BoxDrawingsDownHeavyAndRightLight + const BoxDrawingsDownHeavyAndUpHorizontalLight + const BoxDrawingsDownLighAndLeftHeavy + const BoxDrawingsDownLighAndRightHeavy + const BoxDrawingsDownLightAnbdRightUpHeavy + const BoxDrawingsDownLightAndHorizontalHeavy + const BoxDrawingsDownLightAndLeftUpHeavy + const BoxDrawingsDownLightAndUpHorizontalHeavy + const BoxDrawingsDownSingleAndHorizontalDouble + const BoxDrawingsDownSingleAndLeftDouble + const BoxDrawingsDownSingleAndRightDouble + const BoxDrawingsHeavyDoubleDashHorizontal + const BoxDrawingsHeavyDoubleDashVertical + const BoxDrawingsHeavyDown + const BoxDrawingsHeavyDownAndHorizontal + const BoxDrawingsHeavyDownAndLeft + const BoxDrawingsHeavyDownAndRight + const BoxDrawingsHeavyHorizontal + const BoxDrawingsHeavyLeft + const BoxDrawingsHeavyLeftAndLightRight + const BoxDrawingsHeavyQuadrupleDashHorizontal + const BoxDrawingsHeavyQuadrupleDashVertical + const BoxDrawingsHeavyRight + const BoxDrawingsHeavyTripleDashHorizontal + const BoxDrawingsHeavyTripleDashVertical + const BoxDrawingsHeavyUp + const BoxDrawingsHeavyUpAndHorizontal + const BoxDrawingsHeavyUpAndLeft + const BoxDrawingsHeavyUpAndLightDown + const BoxDrawingsHeavyUpAndRight + const BoxDrawingsHeavyVertical + const BoxDrawingsHeavyVerticalAndHorizontal + const BoxDrawingsHeavyVerticalAndLeft + const BoxDrawingsHeavyVerticalAndRight + const BoxDrawingsLeftDownHeavyAndRightUpLight + const BoxDrawingsLeftHeavyAndRightDownLight + const BoxDrawingsLeftHeavyAndRightUpLight + const BoxDrawingsLeftHeavyAndRightVerticalLight + const BoxDrawingsLeftLightAndRightDownHeavy + const BoxDrawingsLeftLightAndRightUpHeavy + const BoxDrawingsLeftLightAndRightVerticalHeavy + const BoxDrawingsLeftUpHeavyAndRightDownLight + const BoxDrawingsLightArcDownAndLeft + const BoxDrawingsLightArcDownAndRight + const BoxDrawingsLightArcUpAndLeft + const BoxDrawingsLightArcUpAndRight + const BoxDrawingsLightDiagonalCross + const BoxDrawingsLightDiagonalUpperLeftToLowerRight + const BoxDrawingsLightDiagonalUpperRightToLowerLeft + const BoxDrawingsLightDoubleDashHorizontal + const BoxDrawingsLightDoubleDashVertical + const BoxDrawingsLightDown + const BoxDrawingsLightDownAndHorizontal + const BoxDrawingsLightDownAndLeft + const BoxDrawingsLightDownAndRight + const BoxDrawingsLightHorizontal + const BoxDrawingsLightLeft + const BoxDrawingsLightLeftAndHeavyRight + const BoxDrawingsLightQuadrupleDashHorizontal + const BoxDrawingsLightQuadrupleDashVertical + const BoxDrawingsLightRight + const BoxDrawingsLightTripleDashHorizontal + const BoxDrawingsLightTripleDashVertical + const BoxDrawingsLightUp + const BoxDrawingsLightUpAndHeavyDown + const BoxDrawingsLightUpAndHorizontal + const BoxDrawingsLightUpAndLeft + const BoxDrawingsLightUpAndRight + const BoxDrawingsLightVertical + const BoxDrawingsLightVerticalAndHorizontal + const BoxDrawingsLightVerticalAndLeft + const BoxDrawingsLightVerticalAndRight + const BoxDrawingsRightDownHeavyAndLeftUpLight + const BoxDrawingsRightHeavyAndLeftDownLight + const BoxDrawingsRightHeavyAndLeftUpLight + const BoxDrawingsRightHeavyAndLeftVerticalLight + const BoxDrawingsRightLightAndLeftDownHeavy + const BoxDrawingsRightLightAndLeftUpHeavy + const BoxDrawingsRightLightAndLeftVerticalHeavy + const BoxDrawingsRightUpHeavyAndLeftDownLight + const BoxDrawingsUpDobuleAndLeftSingle + const BoxDrawingsUpDoubleAndHorizontalSingle + const BoxDrawingsUpDoubleAndRightSingle + const BoxDrawingsUpHeavyAndDownHorizontalLight + const BoxDrawingsUpHeavyAndHorizontalLight + const BoxDrawingsUpHeavyAndLeftDownLight + const BoxDrawingsUpHeavyAndLeftLight + const BoxDrawingsUpHeavyAndRightDownLight + const BoxDrawingsUpHeavyAndRightLight + const BoxDrawingsUpLightAndDownHorizontalHeavy + const BoxDrawingsUpLightAndHorizontalHeavy + const BoxDrawingsUpLightAndLeftDownHeavy + const BoxDrawingsUpLightAndLeftHeavy + const BoxDrawingsUpLightAndRightDownHeavy + const BoxDrawingsUpLightAndRightHeavy + const BoxDrawingsUpSingleAndHorizontalDouble + const BoxDrawingsUpSingleAndLeftDouble + const BoxDrawingsUpSingleAndRightDouble + const BoxDrawingsVerticalDoubleAndHorizontalSingle + const BoxDrawingsVerticalDoubleAndLeftSingle + const BoxDrawingsVerticalDoubleAndRightSingle + const BoxDrawingsVerticalHeavyAndHorizontalLight + const BoxDrawingsVerticalHeavyAndRightLight + const BoxDrawingsVerticalLightAndHorizontalHeavy + const BoxDrawingsVerticalLightAndLeftHeavy + const BoxDrawingsVerticalLightAndRightHeavy + const BoxDrawingsVerticalSingleAndHorizontalDouble + const BoxDrawingsVerticalSingleAndLeftDouble + const BoxDrawingsVerticalSingleAndRightDouble + const BoxDrawingsVerticalheavyAndLeftLight + const FlexColumn + const FlexRow + const SemigraphicsHorizontalEllipsis + var Borders = struct{ ... } + var DefaultFormFieldWidth = 10 + var InputFieldFloat func(text string, ch rune) bool + var InputFieldInteger func(text string, ch rune) bool + var InputFieldMaxLength func(maxLength int) func(text string, ch rune) bool + var SemigraphicJoints = map[string]rune + var Styles = Theme + var TabSize = 4 + func ANSIWriter(writer io.Writer) io.Writer + func Escape(text string) string + func Print(screen tcell.Screen, text string, x, y, maxWidth, align int, color tcell.Color) (int, int) + func PrintJoinedSemigraphics(screen tcell.Screen, x, y int, ch rune, color tcell.Color) + func PrintSimple(screen tcell.Screen, text string, x, y int) + func TaggedStringWidth(text string) int + func TranslateANSI(text string) string + func WordWrap(text string, width int) (lines []string) + type Application struct + func NewApplication() *Application + func (a *Application) Draw() *Application + func (a *Application) ForceDraw() *Application + func (a *Application) GetAfterDrawFunc() func(screen tcell.Screen) + func (a *Application) GetBeforeDrawFunc() func(screen tcell.Screen) bool + func (a *Application) GetFocus() Primitive + func (a *Application) GetInputCapture() func(event *tcell.EventKey) *tcell.EventKey + func (a *Application) QueueEvent(event tcell.Event) *Application + func (a *Application) QueueUpdate(f func()) *Application + func (a *Application) QueueUpdateDraw(f func()) *Application + func (a *Application) ResizeToFullScreen(p Primitive) *Application + func (a *Application) Run() error + func (a *Application) SetAfterDrawFunc(handler func(screen tcell.Screen)) *Application + func (a *Application) SetBeforeDrawFunc(handler func(screen tcell.Screen) bool) *Application + func (a *Application) SetFocus(p Primitive) *Application + func (a *Application) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *Application + func (a *Application) SetRoot(root Primitive, fullscreen bool) *Application + func (a *Application) SetScreen(screen tcell.Screen) *Application + func (a *Application) Stop() + func (a *Application) Suspend(f func()) bool + type Box struct + func NewBox() *Box + func (b *Box) Blur() + func (b *Box) Draw(screen tcell.Screen) + func (b *Box) Focus(delegate func(p Primitive)) + func (b *Box) GetDrawFunc() func(screen tcell.Screen, x, y, width, height int) (int, int, int, int) + func (b *Box) GetFocusable() Focusable + func (b *Box) GetInnerRect() (int, int, int, int) + func (b *Box) GetInputCapture() func(event *tcell.EventKey) *tcell.EventKey + func (b *Box) GetRect() (int, int, int, int) + func (b *Box) HasFocus() bool + func (b *Box) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (b *Box) SetBackgroundColor(color tcell.Color) *Box + func (b *Box) SetBorder(show bool) *Box + func (b *Box) SetBorderAttributes(attr tcell.AttrMask) *Box + func (b *Box) SetBorderColor(color tcell.Color) *Box + func (b *Box) SetBorderPadding(top, bottom, left, right int) *Box + func (b *Box) SetDrawFunc(...) *Box + func (b *Box) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *Box + func (b *Box) SetRect(x, y, width, height int) + func (b *Box) SetTitle(title string) *Box + func (b *Box) SetTitleAlign(align int) *Box + func (b *Box) SetTitleColor(color tcell.Color) *Box + func (b *Box) WrapInputHandler(inputHandler func(*tcell.EventKey, func(p Primitive))) func(*tcell.EventKey, func(p Primitive)) + type Button struct + func NewButton(label string) *Button + func (b *Button) Draw(screen tcell.Screen) + func (b *Button) GetLabel() string + func (b *Button) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (b *Button) SetBackgroundColorActivated(color tcell.Color) *Button + func (b *Button) SetBlurFunc(handler func(key tcell.Key)) *Button + func (b *Button) SetLabel(label string) *Button + func (b *Button) SetLabelColor(color tcell.Color) *Button + func (b *Button) SetLabelColorActivated(color tcell.Color) *Button + func (b *Button) SetSelectedFunc(handler func()) *Button + type Checkbox struct + func NewCheckbox() *Checkbox + func (c *Checkbox) Draw(screen tcell.Screen) + func (c *Checkbox) GetFieldWidth() int + func (c *Checkbox) GetLabel() string + func (c *Checkbox) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (c *Checkbox) IsChecked() bool + func (c *Checkbox) SetChangedFunc(handler func(checked bool)) *Checkbox + func (c *Checkbox) SetChecked(checked bool) *Checkbox + func (c *Checkbox) SetDoneFunc(handler func(key tcell.Key)) *Checkbox + func (c *Checkbox) SetFieldBackgroundColor(color tcell.Color) *Checkbox + func (c *Checkbox) SetFieldTextColor(color tcell.Color) *Checkbox + func (c *Checkbox) SetFinishedFunc(handler func(key tcell.Key)) FormItem + func (c *Checkbox) SetFormAttributes(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem + func (c *Checkbox) SetLabel(label string) *Checkbox + func (c *Checkbox) SetLabelColor(color tcell.Color) *Checkbox + func (c *Checkbox) SetLabelWidth(width int) *Checkbox + type DropDown struct + func NewDropDown() *DropDown + func (d *DropDown) AddOption(text string, selected func()) *DropDown + func (d *DropDown) Draw(screen tcell.Screen) + func (d *DropDown) Focus(delegate func(p Primitive)) + func (d *DropDown) GetCurrentOption() (int, string) + func (d *DropDown) GetFieldWidth() int + func (d *DropDown) GetLabel() string + func (d *DropDown) HasFocus() bool + func (d *DropDown) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (d *DropDown) SetCurrentOption(index int) *DropDown + func (d *DropDown) SetDoneFunc(handler func(key tcell.Key)) *DropDown + func (d *DropDown) SetFieldBackgroundColor(color tcell.Color) *DropDown + func (d *DropDown) SetFieldTextColor(color tcell.Color) *DropDown + func (d *DropDown) SetFieldWidth(width int) *DropDown + func (d *DropDown) SetFinishedFunc(handler func(key tcell.Key)) FormItem + func (d *DropDown) SetFormAttributes(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem + func (d *DropDown) SetLabel(label string) *DropDown + func (d *DropDown) SetLabelColor(color tcell.Color) *DropDown + func (d *DropDown) SetLabelWidth(width int) *DropDown + func (d *DropDown) SetOptions(texts []string, selected func(text string, index int)) *DropDown + func (d *DropDown) SetPrefixTextColor(color tcell.Color) *DropDown + func (d *DropDown) SetSelectedFunc(handler func(text string, index int)) *DropDown + type Flex struct + func NewFlex() *Flex + func (f *Flex) AddItem(item Primitive, fixedSize, proportion int, focus bool) *Flex + func (f *Flex) Draw(screen tcell.Screen) + func (f *Flex) Focus(delegate func(p Primitive)) + func (f *Flex) HasFocus() bool + func (f *Flex) RemoveItem(p Primitive) *Flex + func (f *Flex) ResizeItem(p Primitive, fixedSize, proportion int) *Flex + func (f *Flex) SetDirection(direction int) *Flex + func (f *Flex) SetFullScreen(fullScreen bool) *Flex + type Focusable interface + HasFocus func() bool + type Form struct + func NewForm() *Form + func (f *Form) AddButton(label string, selected func()) *Form + func (f *Form) AddCheckbox(label string, checked bool, changed func(checked bool)) *Form + func (f *Form) AddDropDown(label string, options []string, initialOption int, ...) *Form + func (f *Form) AddFormItem(item FormItem) *Form + func (f *Form) AddInputField(label, value string, fieldWidth int, ...) *Form + func (f *Form) AddPasswordField(label, value string, fieldWidth int, mask rune, changed func(text string)) *Form + func (f *Form) Clear(includeButtons bool) *Form + func (f *Form) Draw(screen tcell.Screen) + func (f *Form) Focus(delegate func(p Primitive)) + func (f *Form) GetButton(index int) *Button + func (f *Form) GetButtonCount() int + func (f *Form) GetButtonIndex(label string) int + func (f *Form) GetFormItem(index int) FormItem + func (f *Form) GetFormItemByLabel(label string) FormItem + func (f *Form) GetFormItemIndex(label string) int + func (f *Form) HasFocus() bool + func (f *Form) RemoveButton(index int) *Form + func (f *Form) RemoveFormItem(index int) *Form + func (f *Form) SetButtonBackgroundColor(color tcell.Color) *Form + func (f *Form) SetButtonTextColor(color tcell.Color) *Form + func (f *Form) SetButtonsAlign(align int) *Form + func (f *Form) SetCancelFunc(callback func()) *Form + func (f *Form) SetFieldBackgroundColor(color tcell.Color) *Form + func (f *Form) SetFieldTextColor(color tcell.Color) *Form + func (f *Form) SetHorizontal(horizontal bool) *Form + func (f *Form) SetItemPadding(padding int) *Form + func (f *Form) SetLabelColor(color tcell.Color) *Form + type FormItem interface + GetFieldWidth func() int + GetLabel func() string + SetFinishedFunc func(handler func(key tcell.Key)) FormItem + SetFormAttributes func(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem + type Frame struct + func NewFrame(primitive Primitive) *Frame + func (f *Frame) AddText(text string, header bool, align int, color tcell.Color) *Frame + func (f *Frame) Clear() *Frame + func (f *Frame) Draw(screen tcell.Screen) + func (f *Frame) Focus(delegate func(p Primitive)) + func (f *Frame) HasFocus() bool + func (f *Frame) SetBorders(top, bottom, header, footer, left, right int) *Frame + type Grid struct + func NewGrid() *Grid + func (g *Grid) AddItem(p Primitive, row, column, rowSpan, colSpan, minGridHeight, minGridWidth int, ...) *Grid + func (g *Grid) Blur() + func (g *Grid) Clear() *Grid + func (g *Grid) Draw(screen tcell.Screen) + func (g *Grid) Focus(delegate func(p Primitive)) + func (g *Grid) GetOffset() (rows, columns int) + func (g *Grid) HasFocus() bool + func (g *Grid) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (g *Grid) RemoveItem(p Primitive) *Grid + func (g *Grid) SetBorders(borders bool) *Grid + func (g *Grid) SetBordersColor(color tcell.Color) *Grid + func (g *Grid) SetColumns(columns ...int) *Grid + func (g *Grid) SetGap(row, column int) *Grid + func (g *Grid) SetMinSize(row, column int) *Grid + func (g *Grid) SetOffset(rows, columns int) *Grid + func (g *Grid) SetRows(rows ...int) *Grid + func (g *Grid) SetSize(numRows, numColumns, rowSize, columnSize int) *Grid + type InputField struct + func NewInputField() *InputField + func (i *InputField) Draw(screen tcell.Screen) + func (i *InputField) GetFieldWidth() int + func (i *InputField) GetLabel() string + func (i *InputField) GetText() string + func (i *InputField) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (i *InputField) SetAcceptanceFunc(handler func(textToCheck string, lastChar rune) bool) *InputField + func (i *InputField) SetChangedFunc(handler func(text string)) *InputField + func (i *InputField) SetDoneFunc(handler func(key tcell.Key)) *InputField + func (i *InputField) SetFieldBackgroundColor(color tcell.Color) *InputField + func (i *InputField) SetFieldTextColor(color tcell.Color) *InputField + func (i *InputField) SetFieldWidth(width int) *InputField + func (i *InputField) SetFinishedFunc(handler func(key tcell.Key)) FormItem + func (i *InputField) SetFormAttributes(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem + func (i *InputField) SetLabel(label string) *InputField + func (i *InputField) SetLabelColor(color tcell.Color) *InputField + func (i *InputField) SetLabelWidth(width int) *InputField + func (i *InputField) SetMaskCharacter(mask rune) *InputField + func (i *InputField) SetPlaceholder(text string) *InputField + func (i *InputField) SetPlaceholderTextColor(color tcell.Color) *InputField + func (i *InputField) SetText(text string) *InputField + type List struct + func NewList() *List + func (l *List) AddItem(mainText, secondaryText string, shortcut rune, selected func()) *List + func (l *List) Clear() *List + func (l *List) Draw(screen tcell.Screen) + func (l *List) FindItems(mainSearch, secondarySearch string, mustContainBoth, ignoreCase bool) (indices []int) + func (l *List) GetCurrentItem() int + func (l *List) GetItemCount() int + func (l *List) GetItemText(index int) (main, secondary string) + func (l *List) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (l *List) InsertItem(index int, mainText, secondaryText string, shortcut rune, selected func()) *List + func (l *List) RemoveItem(index int) *List + func (l *List) SetChangedFunc(handler func(index int, mainText string, secondaryText string, shortcut rune)) *List + func (l *List) SetCurrentItem(index int) *List + func (l *List) SetDoneFunc(handler func()) *List + func (l *List) SetHighlightFullLine(highlight bool) *List + func (l *List) SetItemText(index int, main, secondary string) *List + func (l *List) SetMainTextColor(color tcell.Color) *List + func (l *List) SetSecondaryTextColor(color tcell.Color) *List + func (l *List) SetSelectedBackgroundColor(color tcell.Color) *List + func (l *List) SetSelectedFocusOnly(focusOnly bool) *List + func (l *List) SetSelectedFunc(handler func(int, string, string, rune)) *List + func (l *List) SetSelectedTextColor(color tcell.Color) *List + func (l *List) SetShortcutColor(color tcell.Color) *List + func (l *List) ShowSecondaryText(show bool) *List + type Modal struct + func NewModal() *Modal + func (m *Modal) AddButtons(labels []string) *Modal + func (m *Modal) Draw(screen tcell.Screen) + func (m *Modal) Focus(delegate func(p Primitive)) + func (m *Modal) HasFocus() bool + func (m *Modal) SetDoneFunc(handler func(buttonIndex int, buttonLabel string)) *Modal + func (m *Modal) SetText(text string) *Modal + func (m *Modal) SetTextColor(color tcell.Color) *Modal + type Pages struct + func NewPages() *Pages + func (p *Pages) AddAndSwitchToPage(name string, item Primitive, resize bool) *Pages + func (p *Pages) AddPage(name string, item Primitive, resize, visible bool) *Pages + func (p *Pages) Draw(screen tcell.Screen) + func (p *Pages) Focus(delegate func(p Primitive)) + func (p *Pages) HasFocus() bool + func (p *Pages) HasPage(name string) bool + func (p *Pages) HidePage(name string) *Pages + func (p *Pages) RemovePage(name string) *Pages + func (p *Pages) SendToBack(name string) *Pages + func (p *Pages) SendToFront(name string) *Pages + func (p *Pages) SetChangedFunc(handler func()) *Pages + func (p *Pages) ShowPage(name string) *Pages + func (p *Pages) SwitchToPage(name string) *Pages + type Primitive interface + Blur func() + Draw func(screen tcell.Screen) + Focus func(delegate func(p Primitive)) + GetFocusable func() Focusable + GetRect func() (int, int, int, int) + InputHandler func() func(event *tcell.EventKey, setFocus func(p Primitive)) + SetRect func(x, y, width, height int) + type Table struct + func NewTable() *Table + func (t *Table) Clear() *Table + func (t *Table) Draw(screen tcell.Screen) + func (t *Table) GetCell(row, column int) *TableCell + func (t *Table) GetColumnCount() int + func (t *Table) GetOffset() (row, column int) + func (t *Table) GetRowCount() int + func (t *Table) GetSelectable() (rows, columns bool) + func (t *Table) GetSelection() (row, column int) + func (t *Table) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (t *Table) InsertColumn(column int) *Table + func (t *Table) InsertRow(row int) *Table + func (t *Table) RemoveColumn(column int) *Table + func (t *Table) RemoveRow(row int) *Table + func (t *Table) ScrollToBeginning() *Table + func (t *Table) ScrollToEnd() *Table + func (t *Table) Select(row, column int) *Table + func (t *Table) SetBorders(show bool) *Table + func (t *Table) SetBordersColor(color tcell.Color) *Table + func (t *Table) SetCell(row, column int, cell *TableCell) *Table + func (t *Table) SetCellSimple(row, column int, text string) *Table + func (t *Table) SetDoneFunc(handler func(key tcell.Key)) *Table + func (t *Table) SetFixed(rows, columns int) *Table + func (t *Table) SetOffset(row, column int) *Table + func (t *Table) SetSelectable(rows, columns bool) *Table + func (t *Table) SetSelectedFunc(handler func(row, column int)) *Table + func (t *Table) SetSelectedStyle(foregroundColor, backgroundColor tcell.Color, attributes tcell.AttrMask) *Table + func (t *Table) SetSelectionChangedFunc(handler func(row, column int)) *Table + func (t *Table) SetSeparator(separator rune) *Table + type TableCell struct + Align int + Attributes tcell.AttrMask + BackgroundColor tcell.Color + Color tcell.Color + Expansion int + MaxWidth int + NotSelectable bool + Reference interface{} + Text string + func NewTableCell(text string) *TableCell + func (c *TableCell) GetLastPosition() (x, y, width int) + func (c *TableCell) GetReference() interface{} + func (c *TableCell) SetAlign(align int) *TableCell + func (c *TableCell) SetAttributes(attr tcell.AttrMask) *TableCell + func (c *TableCell) SetBackgroundColor(color tcell.Color) *TableCell + func (c *TableCell) SetExpansion(expansion int) *TableCell + func (c *TableCell) SetMaxWidth(maxWidth int) *TableCell + func (c *TableCell) SetReference(reference interface{}) *TableCell + func (c *TableCell) SetSelectable(selectable bool) *TableCell + func (c *TableCell) SetStyle(style tcell.Style) *TableCell + func (c *TableCell) SetText(text string) *TableCell + func (c *TableCell) SetTextColor(color tcell.Color) *TableCell + type TextView struct + func NewTextView() *TextView + func (t *TextView) Clear() *TextView + func (t *TextView) Draw(screen tcell.Screen) + func (t *TextView) Focus(delegate func(p Primitive)) + func (t *TextView) GetHighlights() (regionIDs []string) + func (t *TextView) GetRegionText(regionID string) string + func (t *TextView) GetScrollOffset() (row, column int) + func (t *TextView) GetText(stripTags bool) string + func (t *TextView) HasFocus() bool + func (t *TextView) Highlight(regionIDs ...string) *TextView + func (t *TextView) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (t *TextView) ScrollTo(row, column int) *TextView + func (t *TextView) ScrollToBeginning() *TextView + func (t *TextView) ScrollToEnd() *TextView + func (t *TextView) ScrollToHighlight() *TextView + func (t *TextView) SetChangedFunc(handler func()) *TextView + func (t *TextView) SetDoneFunc(handler func(key tcell.Key)) *TextView + func (t *TextView) SetDynamicColors(dynamic bool) *TextView + func (t *TextView) SetRegions(regions bool) *TextView + func (t *TextView) SetScrollable(scrollable bool) *TextView + func (t *TextView) SetText(text string) *TextView + func (t *TextView) SetTextAlign(align int) *TextView + func (t *TextView) SetTextColor(color tcell.Color) *TextView + func (t *TextView) SetWordWrap(wrapOnWords bool) *TextView + func (t *TextView) SetWrap(wrap bool) *TextView + func (t *TextView) Write(p []byte) (n int, err error) + type Theme struct + BorderColor tcell.Color + ContrastBackgroundColor tcell.Color + ContrastSecondaryTextColor tcell.Color + GraphicsColor tcell.Color + InverseTextColor tcell.Color + MoreContrastBackgroundColor tcell.Color + PrimaryTextColor tcell.Color + PrimitiveBackgroundColor tcell.Color + SecondaryTextColor tcell.Color + TertiaryTextColor tcell.Color + TitleColor tcell.Color + type TreeNode struct + func NewTreeNode(text string) *TreeNode + func (n *TreeNode) AddChild(node *TreeNode) *TreeNode + func (n *TreeNode) ClearChildren() *TreeNode + func (n *TreeNode) Collapse() *TreeNode + func (n *TreeNode) CollapseAll() *TreeNode + func (n *TreeNode) Expand() *TreeNode + func (n *TreeNode) ExpandAll() *TreeNode + func (n *TreeNode) GetChildren() []*TreeNode + func (n *TreeNode) GetColor() tcell.Color + func (n *TreeNode) GetReference() interface{} + func (n *TreeNode) GetText() string + func (n *TreeNode) IsExpanded() bool + func (n *TreeNode) SetChildren(childNodes []*TreeNode) *TreeNode + func (n *TreeNode) SetColor(color tcell.Color) *TreeNode + func (n *TreeNode) SetExpanded(expanded bool) *TreeNode + func (n *TreeNode) SetIndent(indent int) *TreeNode + func (n *TreeNode) SetReference(reference interface{}) *TreeNode + func (n *TreeNode) SetSelectable(selectable bool) *TreeNode + func (n *TreeNode) SetSelectedFunc(handler func()) *TreeNode + func (n *TreeNode) SetText(text string) *TreeNode + func (n *TreeNode) Walk(callback func(node, parent *TreeNode) bool) *TreeNode + type TreeView struct + func NewTreeView() *TreeView + func (t *TreeView) Draw(screen tcell.Screen) + func (t *TreeView) GetCurrentNode() *TreeNode + func (t *TreeView) GetRoot() *TreeNode + func (t *TreeView) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + func (t *TreeView) SetAlign(align bool) *TreeView + func (t *TreeView) SetChangedFunc(handler func(node *TreeNode)) *TreeView + func (t *TreeView) SetCurrentNode(node *TreeNode) *TreeView + func (t *TreeView) SetGraphics(showGraphics bool) *TreeView + func (t *TreeView) SetGraphicsColor(color tcell.Color) *TreeView + func (t *TreeView) SetPrefixes(prefixes []string) *TreeView + func (t *TreeView) SetRoot(root *TreeNode) *TreeView + func (t *TreeView) SetSelectedFunc(handler func(node *TreeNode)) *TreeView + func (t *TreeView) SetTopLevel(topLevel int) *TreeView