console

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console interface {
	io.Writer

	Readline() (string, error)

	// this is a hook to perform terminal cleanup, as in chzyer/readline
	Close() error
}

Console is an abstract representation of keyboard input and screen output

func NewConsole

func NewConsole(enableReadline bool, historyFile string) (Console, error)

func NewStandardConsole

func NewStandardConsole() (Console, error)

Jump to

Keyboard shortcuts

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