colorterm

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package colorterm implements the Terminal interface for the gopher2600 debugger. It supports color output, history and tab completion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorTerminal

type ColorTerminal struct {
	easyterm.EasyTerm
	// contains filtered or unexported fields
}

ColorTerminal implements debugger UI interface with a basic ANSI terminal.

func (*ColorTerminal) CleanUp

func (ct *ColorTerminal) CleanUp()

CleanUp perfoms any cleaning up required for the terminal.

func (*ColorTerminal) Initialise

func (ct *ColorTerminal) Initialise() error

Initialise perfoms any setting up required for the terminal.

func (*ColorTerminal) IsInteractive

func (ct *ColorTerminal) IsInteractive() bool

IsInteractive satisfies the terminal.Input interface.

func (*ColorTerminal) IsRealTerminal added in v0.15.0

func (ct *ColorTerminal) IsRealTerminal() bool

IsRealTerminal implements the terminal.Input interface.

func (*ColorTerminal) RegisterTabCompletion

func (ct *ColorTerminal) RegisterTabCompletion(tc terminal.TabCompletion)

RegisterTabCompletion adds an implementation of TabCompletion to the ColorTerminal.

func (*ColorTerminal) Silence

func (ct *ColorTerminal) Silence(silenced bool)

Silence implements terminal.Terminal interface.

func (*ColorTerminal) TermPrintLine

func (ct *ColorTerminal) TermPrintLine(style terminal.Style, s string)

TermPrintLine implements the terminal.Output interface.

func (*ColorTerminal) TermRead

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

TermRead implements the terminal.Input interface.

func (*ColorTerminal) TermReadCheck

func (ct *ColorTerminal) TermReadCheck() bool

TermReadCheck implements the terminal.Input interface.

Directories

Path Synopsis
Package easyterm is a wrapper for "github.com/pkg/term/termios".
Package easyterm is a wrapper for "github.com/pkg/term/termios".
ansi
Package ansi defines ANSI control codes for styles and colours.
Package ansi defines ANSI control codes for styles and colours.

Jump to

Keyboard shortcuts

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