terminal

package
v0.0.0-...-c89f76e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = map[TeminalColors][]byte{
	Red:    []byte("[red]"),
	Yellow: []byte("[yellow]"),
	Green:  []byte("[green]"),
	Blue:   []byte("[blue]"),
}

Colors é um mapa que associa valores CustomColor a tcell.Color

Functions

This section is empty.

Types

type TeminalColors

type TeminalColors int
const (
	Red TeminalColors = iota
	Yellow
	Green
	Blue
)

type Terminal

type Terminal struct {
	ManagerConnections *tcp.ManagerConnections
	StatusCh           chan tcp.StatusMsg
	StatusInfoCh       chan tcp.StatusMsg
	Input              chan tcp.DataType
	// contains filtered or unexported fields
}

func NewTerminal

func NewTerminal(managerConnections *tcp.ManagerConnections) *Terminal

func (*Terminal) ClearAll

func (i *Terminal) ClearAll()

func (*Terminal) ClearInput

func (i *Terminal) ClearInput()

func (*Terminal) ClearOutput

func (i *Terminal) ClearOutput()

func (*Terminal) ClearStatusConn

func (i *Terminal) ClearStatusConn()

func (*Terminal) CloseTimer

func (t *Terminal) CloseTimer()

func (*Terminal) ConfigModal

func (t *Terminal) ConfigModal(endCh chan struct{}) tview.Primitive

func (*Terminal) Create

func (t *Terminal) Create(endCh chan struct{})

func (*Terminal) ExpandingStatusModal

func (t *Terminal) ExpandingStatusModal() tview.Primitive

func (*Terminal) FlexModalPrimitive

func (t *Terminal) FlexModalPrimitive(p tview.Primitive, width, height int) tview.Primitive

func (*Terminal) ListenServerResponse

func (t *Terminal) ListenServerResponse(endCh chan struct{})

func (*Terminal) Print

func (i *Terminal) Print(msg tcp.DataType, view *tview.TextView)

func (*Terminal) PrintInput

func (i *Terminal) PrintInput(msg tcp.DataType)

func (*Terminal) PrintStatusConn

func (i *Terminal) PrintStatusConn(value string, color TeminalColors)

func (*Terminal) PrintStatusInfo

func (i *Terminal) PrintStatusInfo(value string, color TeminalColors)

Jump to

Keyboard shortcuts

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