Documentation ¶
Index ¶
- Constants
- type Terminal
- func (t *Terminal) AddDecorator(d decorators.Decorator)
- func (t *Terminal) ForceRedraw()
- func (t *Terminal) HideOutput()
- func (t *Terminal) Pty() *os.File
- func (t *Terminal) Run(commands ...string) error
- func (t *Terminal) SetDir(dir string)
- func (t *Terminal) SetMOTD(motd string)
- func (t *Terminal) SetNestingAllowed(allowed bool)
- func (t *Terminal) SetShell(shell string)
- func (t *Terminal) ShowOutput()
Constants ¶
View Source
const BackOffReadInitialSleepDuration = time.Millisecond
View Source
const BackOffReadMaxSleepDuration = time.Millisecond * 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
Terminal communicates with the underlying terminal which is running shox
func (*Terminal) AddDecorator ¶
func (t *Terminal) AddDecorator(d decorators.Decorator)
AddDecorator adds a decorator to alter the terminal output
func (*Terminal) ForceRedraw ¶ added in v0.0.18
func (t *Terminal) ForceRedraw()
func (*Terminal) HideOutput ¶ added in v0.0.18
func (t *Terminal) HideOutput()
func (*Terminal) SetMOTD ¶ added in v0.0.18
SetMOTD sets the motd to write to the terminal before the main command is launched
func (*Terminal) SetNestingAllowed ¶ added in v0.0.7
SetNestingAllowed sets whether multiple shox bars can be nested inside each other
func (*Terminal) ShowOutput ¶ added in v0.0.18
func (t *Terminal) ShowOutput()
Click to show internal directories.
Click to hide internal directories.