Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TerminalOut ¶
type TerminalOut struct {
// contains filtered or unexported fields
}
func InitTerminal ¶
func InitTerminal(o io.Writer, lines []string, autoUpdate bool) *TerminalOut
Create a terminalOut object that can be used to display and change lines
func (*TerminalOut) Close ¶
func (t *TerminalOut) Close()
Stops the auto update and makes sure that all updates are displayed
func (*TerminalOut) ManualRefresh ¶
func (t *TerminalOut) ManualRefresh()
Updates the displayed lines. Use this only for the first time or when autoupdate is false
func (*TerminalOut) UpdateLine ¶
func (t *TerminalOut) UpdateLine(position int, newStr string)
Update the text on line "position" (starts at 0). Can used concurrently without problems
Click to show internal directories.
Click to hide internal directories.