plainterm

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: GPL-3.0, GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package plainterm implements the Terminal interface for the gopher2600 debugger. It's a simple as simple can be and offers no special features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlainTerminal

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

PlainTerminal is the default, most basic terminal interface. It keeps the terminal in whatever mode it started, probably cooked mode. As such, it offers only rudimentary editing facility and little control over output.

func (*PlainTerminal) CleanUp

func (pt *PlainTerminal) CleanUp()

CleanUp perfoms any cleaning up required for the terminal

func (*PlainTerminal) Initialise

func (pt *PlainTerminal) Initialise() error

Initialise perfoms any setting up required for the terminal

func (*PlainTerminal) IsInteractive

func (pt *PlainTerminal) IsInteractive() bool

IsInteractive implements the terminal.Input interface

func (*PlainTerminal) RegisterTabCompletion

func (pt *PlainTerminal) RegisterTabCompletion(terminal.TabCompletion)

RegisterTabCompletion adds an implementation of TabCompletion to the terminal

func (*PlainTerminal) Silence

func (pt *PlainTerminal) Silence(silenced bool)

Silence implements the terminal.Terminal interface

func (PlainTerminal) TermPrintLine

func (pt PlainTerminal) TermPrintLine(style terminal.Style, s string)

TermPrintLine implements the terminal.Output interface

func (PlainTerminal) TermRead

func (pt PlainTerminal) TermRead(input []byte, prompt terminal.Prompt, events *terminal.ReadEvents) (int, error)

TermRead implements the terminal.Input interface

func (*PlainTerminal) TermReadCheck

func (pt *PlainTerminal) TermReadCheck() bool

TermReadCheck implements the terminal.Input interface

Jump to

Keyboard shortcuts

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