Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Killable ¶ added in v0.2.0
type Killable interface {
// Kill stops all activity in this Screen.
Kill()
}
type Screen ¶
type Screen interface {
Resizable
Killable
// State gets the visible state of the Screen.
State() *tty.State
// Subscribe subscribes to any changes to this Screen (typically
// changes to its visible state.)
Subscribe(context.Context) *Updater
// Send sends an arbitrary message to the Screen.
Send(message events.Msg)
}
A Screen is a resizable box that can publish updates.
type Stream ¶
type Stream interface {
io.ReadWriter
Resizable
Killable
}
A Stream accepts input (Write) and resize events and produces output (Read).
type UpdatePublisher ¶
func NewPublisher ¶
func NewPublisher() *UpdatePublisher
func (*UpdatePublisher) Notify ¶ added in v0.1.6
func (u *UpdatePublisher) Notify()
Click to show internal directories.
Click to hide internal directories.