screen

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	// contains filtered or unexported fields
}

type Screen

type Screen struct {
	// contains filtered or unexported fields
}

func NewScreen

func NewScreen(version configs.LimeVersion, setCtx func(context.Context), getCtx func() context.Context, cancelCtx context.CancelFunc) *Screen

func (*Screen) CancelContext

func (s *Screen) CancelContext()

func (*Screen) DrawBox

func (s *Screen) DrawBox(x1, y1, x2, y2 int, text string, fill, borders, corners bool, style tcell.Style)

func (*Screen) DrawText

func (s *Screen) DrawText(x1, y1, x2, y2 int, text string, style tcell.Style)

func (*Screen) GetBoxStyle

func (s *Screen) GetBoxStyle() tcell.Style

func (*Screen) GetCursorPosition

func (s *Screen) GetCursorPosition() (x int, y int)

func (*Screen) GetDefStyle

func (s *Screen) GetDefStyle() tcell.Style

func (*Screen) GetScreen

func (s *Screen) GetScreen() tcell.Screen

func (*Screen) Quit

func (s *Screen) Quit()

func (*Screen) SetCursor

func (s *Screen) SetCursor(x, y int)

func (*Screen) ShowBox

func (s *Screen) ShowBox()

func (*Screen) ShowCursor

func (s *Screen) ShowCursor()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳