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 ¶
- type PlainTerminal
- func (pt *PlainTerminal) CleanUp()
- func (pt *PlainTerminal) Initialise() error
- func (pt *PlainTerminal) IsInteractive() bool
- func (pt *PlainTerminal) IsRealTerminal() bool
- func (pt *PlainTerminal) RegisterTabCompletion(terminal.TabCompletion)
- func (pt *PlainTerminal) Silence(silenced bool)
- func (pt PlainTerminal) TermPrintLine(style terminal.Style, s string)
- func (pt PlainTerminal) TermRead(input []byte, prompt terminal.Prompt, events *terminal.ReadEvents) (int, error)
- func (pt *PlainTerminal) TermReadCheck() bool
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) IsRealTerminal ¶ added in v0.15.0
func (pt *PlainTerminal) IsRealTerminal() bool
IsRealTerminal 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.