Documentation
¶
Index ¶
- Variables
- type TeminalColors
- type Terminal
- func (i *Terminal) ClearAll()
- func (i *Terminal) ClearInput()
- func (i *Terminal) ClearOutput()
- func (i *Terminal) ClearStatusConn()
- func (t *Terminal) CloseTimer()
- func (t *Terminal) ConfigModal(endCh chan struct{}) tview.Primitive
- func (t *Terminal) Create(endCh chan struct{})
- func (t *Terminal) ExpandingStatusModal() tview.Primitive
- func (t *Terminal) FlexModalPrimitive(p tview.Primitive, width, height int) tview.Primitive
- func (t *Terminal) ListenServerResponse(endCh chan struct{})
- func (i *Terminal) Print(msg tcp.DataType, view *tview.TextView)
- func (i *Terminal) PrintInput(msg tcp.DataType)
- func (i *Terminal) PrintStatusConn(value string, color TeminalColors)
- func (i *Terminal) PrintStatusInfo(value string, color TeminalColors)
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 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) 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 (*Terminal) ExpandingStatusModal ¶
func (*Terminal) FlexModalPrimitive ¶
func (*Terminal) ListenServerResponse ¶
func (t *Terminal) ListenServerResponse(endCh chan struct{})
func (*Terminal) PrintInput ¶
func (*Terminal) PrintStatusConn ¶
func (i *Terminal) PrintStatusConn(value string, color TeminalColors)
func (*Terminal) PrintStatusInfo ¶
func (i *Terminal) PrintStatusInfo(value string, color TeminalColors)
Click to show internal directories.
Click to hide internal directories.