terminal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader provides terminal input functionality.

func (*Reader) On

func (r *Reader) On(event string, handler func(string, core.Key))

func (*Reader) Read

func (r *Reader) Read(_ []byte) (int, error)

type Terminal

type Terminal struct {
	Reader *Reader
	Writer *Writer
	// contains filtered or unexported fields
}

Terminal manages terminal I/O operations.

func New

func New() (*Terminal, error)

New creates a new terminal instance with keyboard input and output handling.

func (*Terminal) Close

func (t *Terminal) Close()

Close releases terminal resources.

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer provides terminal output functionality.

func (*Writer) Emit

func (w *Writer) Emit(event string)

func (*Writer) On

func (w *Writer) On(event string, handler func())

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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