mux

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resizable

type Resizable interface {
	Resize(size Size) error
}

type Screen

type Screen interface {
	io.Writer
	State() *tty.State
	Updates() *Updater
	Resizable
}

A Screen is the "end" of a chain of IO, or the result that the user sees.

type Size

type Size = geom.Vec2

type Stream

type Stream interface {
	io.ReadWriter
	Resizable
}

A Stream accepts input (Write) and resize events and produces output (Read).

type UpdatePublisher

type UpdatePublisher = util.Publisher[*tty.State]

func NewPublisher

func NewPublisher() *UpdatePublisher

type Updater

type Updater = util.Subscriber[*tty.State]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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