screen

package
v0.0.0-...-e8a7fb7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: LGPL-2.1 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET_TERMIOS = unix.TCGETS
	SET_TERMIOS = unix.TCSETS
)

Variables

View Source
var Exit = errors.New("EXIT")

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	X      int
	Y      int
	Offset int
	Style  tcell.Style
	// contains filtered or unexported fields
}

func (Cursor) Bg

func (this Cursor) Bg(col tcell.Color) Cursor

func (Cursor) CR

func (this Cursor) CR(x int) Cursor

func (Cursor) Clear

func (this Cursor) Clear() Cursor

func (Cursor) Col

func (this Cursor) Col(fg, bg tcell.Color) Cursor

func (Cursor) ColByLevel

func (this Cursor) ColByLevel(l string) Cursor

func (Cursor) Fg

func (this Cursor) Fg(col tcell.Color) Cursor

func (Cursor) Fill

func (this Cursor) Fill(r rune) Cursor

func (Cursor) Level

func (this Cursor) Level(l string) Cursor

func (Cursor) Line

func (this Cursor) Line(l tbuf.Line, padding int) Cursor

func (Cursor) Print

func (this Cursor) Print(s string) Cursor

func (Cursor) PrintHL

func (this Cursor) PrintHL(s string) Cursor

func (Cursor) Printf

func (this Cursor) Printf(f string, args ...interface{}) Cursor

func (Cursor) PrintfHL

func (this Cursor) PrintfHL(f string, args ...interface{}) Cursor

func (Cursor) Reverse

func (this Cursor) Reverse(r bool) Cursor

func (Cursor) Time

func (this Cursor) Time(t time.Time) Cursor

type Screen

type Screen struct {
	Done chan struct{}

	Refresh bool
	// contains filtered or unexported fields
}

func NewScreen

func NewScreen(log func(...interface{}), buffer *tbuf.Buffer) *Screen

func (*Screen) Close

func (this *Screen) Close()

func (*Screen) NewCursor

func (this *Screen) NewCursor(x, y int) Cursor

func (*Screen) Repaint

func (this *Screen) Repaint()

Jump to

Keyboard shortcuts

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