backend

package
v0.0.0-...-b5b2f04 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Common interfaces implemented by backends to abstract terminal / console interaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

type Terminal interface {
	draw.Surface

	// Clear clears the entire console surface and replace cell by empty black one.
	Clear()

	// Flush flushes the cell buffer.
	Flush()

	// Start initializes the console for use. This starts the event loop and rendering.
	Start(chan<- events.Event) error

	// Stop deinitializes the console.
	Stop()
}

Terminal define a generic terminal in raw mode used for rendering and event loops.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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