console

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: AGPL-3.0 Imports: 5 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 struct {
	// ScrollBack is the maximum number of lines stored by the container
	ScrollBack int
	// contains filtered or unexported fields
}

Console represents a buffer that can be written to and is displayed in a monospaced scroll container

func New

func New(scrollback int) *Console

New creates a new console

func (*Console) CanvasObject

func (console *Console) CanvasObject() fyne.CanvasObject

CanvasObject returns a CanvasObject that can be used to render this console.

func (*Console) Write

func (console *Console) Write(data []byte) (int, error)

Write writes to the underlying console

Jump to

Keyboard shortcuts

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