Documentation ¶
Overview ¶
Package colorterm implements the Terminal interface for the gopher2600 debugger. It supports color output, history and tab completion.
Index ¶
- type ColorTerminal
- func (ct *ColorTerminal) CleanUp()
- func (ct *ColorTerminal) Initialise() error
- func (ct *ColorTerminal) IsInteractive() bool
- func (ct *ColorTerminal) IsRealTerminal() bool
- func (ct *ColorTerminal) RegisterTabCompletion(tc terminal.TabCompletion)
- func (ct *ColorTerminal) Silence(silenced bool)
- func (ct *ColorTerminal) TermPrintLine(style terminal.Style, s string)
- func (ct *ColorTerminal) TermRead(input []byte, prompt terminal.Prompt, events *terminal.ReadEvents) (int, error)
- func (ct *ColorTerminal) TermReadCheck() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorTerminal ¶
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.