console

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowFile

func ShowFile(
	file string,
	fileRaw []byte,
	w io.Writer,
	startLine, width, height int) (maxLine int, err error)

Types

type Console

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

func New

func New(cfg *config.Config) *Console

func (*Console) Loop

func (co *Console) Loop() error

func (*Console) Prepare

func (co *Console) Prepare() (err error)

func (*Console) Print

func (co *Console) Print(a ...interface{}) (n int, err error)

func (*Console) Printf

func (co *Console) Printf(format string, a ...interface{}) (n int, err error)

func (*Console) Restore

func (co *Console) Restore()

Jump to

Keyboard shortcuts

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