tui

package
v0.0.0-...-287da2b Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConnectionView is the TextView for the connection list.
	ConnectionView *tview.TextView

	// LogView is the TextView for the log box.
	LogView *tview.TextView
)
View Source
var (

	// RootFlex is the root flex manager.
	RootFlex *tview.Flex

	// BottomFlex is the bottom bar flex manager.
	BottomFlex *tview.Flex

	// TopFlex is the the top bar flex manger.
	TopFlex *tview.Flex
)
View Source
var (
	// ConnViews map the IP Addresses to the connection TextViews.
	ConnViews map[string]*tview.TextView

	// CurrentFocusedView points to the current focused primitive.
	CurrentFocusedView tview.Primitive
)

Functions

func AddConnection

func AddConnection(ip string) *tview.TextView

AddConnection adds a new shell connection.

func AddViewToMap

func AddViewToMap(view *tview.TextView, ip string)

AddViewToMap adds a TextView to the map.

func GetViewFromIp

func GetViewFromIp(ip string) *tview.TextView

GetViewFromIp returns the view from the ConnViews map.

func Handlers

func Handlers()

Handlers initializes the ViewHandler.

func InitBottomFlex

func InitBottomFlex()

InitBottomFlex initialzes the bottom flex bar.

func InitTUI

func InitTUI()

InitTUI sets up the terminal based UI for the application.

func InitTopFlex

func InitTopFlex()

InitTopFlex initializes the top flex bar.

func NewShellView

func NewShellView(title string) *tview.TextView

NewShellView creates a new box for a connection.

func NewTextView

func NewTextView(title string) *tview.TextView

NewTextView returns a new TextView.

func NewTitledBox

func NewTitledBox(title string) *tview.Box

NewTitledBox returns a titled Box.

func RemoveConnection

func RemoveConnection(ip string)

RemoveConnection removes connection from shell list.

func RemoveViewFromMap

func RemoveViewFromMap(ip string)

RemoveViewFromMap removes the TextView from the map.

func WriteLogView

func WriteLogView(data string)

WriteLogView writes data to the LogView.

func WriteTextView

func WriteTextView(view *tview.TextView, data string)

WriteTextView writes data to a text view.

Types

This section is empty.

Jump to

Keyboard shortcuts

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