terminal

package
v0.0.0-...-96b211d Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output interface {
	LockOrigin()
	PrintlnFromOrigin(input string)
	Println(input string)
	Printf(format string, args ...interface{})
	Print(input string)
	Remove(size int)
	Refresh()

	ActiveLine() string
	ActiveCommand() string
	MoveCursorHead()
	MoveCursorLeft(size int)
	MoveCursorRight(size int)
	MoveCursorLeftWord()
	MoveCursorRightWord()
	MoveCursorEnd()

	ScrollTop()
	ScrollPageUp()
	ScrollUp()
	ScrollDown()
	ScrollPageDown()
	ScrollBottom()

	Scan(out *string) bool
}

Output interface is to handle multiple input operations for different output points

func NewStdOut

func NewStdOut() Output

NewStdOut creates an output handling interface for console output

func NewTCellOut

func NewTCellOut(screen tcell.Screen) Output

Jump to

Keyboard shortcuts

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