screen

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hi

type Hi struct {
	Left, Right int
}

Hi represents a range for highlight.

type Screen

type Screen interface {
	Start(*config.Config, bool, []rune, int, *Hi)
	Refresh(*config.Config, bool, []rune, int, *Hi)
	SetLastLine(string)
}

type TestScreen

type TestScreen struct{}

TestScreen is one of the simplest implementation for Screen. It does not anything. It is useful for testing.

func (*TestScreen) Refresh

func (_ *TestScreen) Refresh(_ *config.Config, _ bool, _ []rune, _ int, _ *Hi)

func (*TestScreen) SetLastLine

func (_ *TestScreen) SetLastLine(_ string)

func (*TestScreen) Start

func (_ *TestScreen) Start(_ *config.Config, _ bool, _ []rune, _ int, _ *Hi)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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