gotty

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gotty provides an implementation of term.TTY via github.com/mattn/go-tty.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TTYMattN added in v0.0.5

type TTYMattN struct {
	*ttymattn.TTY
	// contains filtered or unexported fields
}

func New

func New(ttyFile string) (*TTYMattN, error)

func (*TTYMattN) Close added in v0.0.5

func (t *TTYMattN) Close() error

Close ...

func (*TTYMattN) Read added in v0.0.5

func (t *TTYMattN) Read(p []byte) (n int, err error)

func (*TTYMattN) ReadRune added in v0.0.5

func (t *TTYMattN) ReadRune() (r rune, size int, err error)

func (*TTYMattN) ResizeEvents added in v0.0.5

func (t *TTYMattN) ResizeEvents() (_ <-chan term.Resolution, closeFunc func() error, _ error)

ResizeEvents ...

func (*TTYMattN) TTYDevName added in v0.0.5

func (t *TTYMattN) TTYDevName() string

func (*TTYMattN) Write added in v0.0.5

func (t *TTYMattN) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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