input

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package input converts a io.Reader (normally a tty) into a sequence of events. It have basic support for xtermm and vt100 escape sequences

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Input io.Reader

	Events <-chan (events.Event)
	// contains filtered or unexported fields
}

Input represent an input device. It converts a stream of bytes into a collection of events.

func (*Input) Open

func (i *Input) Open()

Open starts reading bytes from the reader and publishing events in Events. Once io.EOF is found, the channel will be closed.

Jump to

Keyboard shortcuts

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