term

package
v0.0.0-...-3f44578 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnableEcho  = iota
	DisableEcho = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

type Terminal struct {
	InputFile *os.File

	OutputFile *os.File
	// contains filtered or unexported fields
}

func New

func New() *Terminal

func (*Terminal) Prompt

func (t *Terminal) Prompt(prompt string, echo int) string

func (*Terminal) SetInput

func (t *Terminal) SetInput(input *os.File)

func (*Terminal) SetOutput

func (t *Terminal) SetOutput(output *os.File)

Jump to

Keyboard shortcuts

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