internal

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WarpGPMSupport

func WarpGPMSupport(scr tcell.Screen, tt ...string) (
	_ tcell.Screen, haveGPM bool,
)

WrapGPMSupport either returns given screen scr and false if we are not in a linux console or no gpm support is found. Otherwise scr is wrapped by GPMScreen reporting gpm mouse events and providing a mouse cursor.

Types

type GPMScreen

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

func (*GPMScreen) GetContent

func (gpm *GPMScreen) GetContent(x, y int) (
	primary rune, combining []rune, style tcell.Style, width int,
)

func (*GPMScreen) PollEvent

func (gpm *GPMScreen) PollEvent() tcell.Event

func (*GPMScreen) SetContent

func (gpm *GPMScreen) SetContent(
	x, y int, primary rune, combining []rune, style tcell.Style,
)

Jump to

Keyboard shortcuts

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