term

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Term

type Term struct {
	*term.Terminal
	// contains filtered or unexported fields
}

func NewTerm

func NewTerm(r io.Reader) (*Term, error)

func (*Term) Println

func (t *Term) Println(v ...any)

func (*Term) ReadLine

func (t *Term) ReadLine(prompt string) (string, error)

func (*Term) Size

func (t *Term) Size() (int, int)

Returns the width and height of the terminal, or (0,0) if we aren't in a terminal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳