Help us shape the future of Go! Take the 2026 Go Developer Survey

tcell

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCellBackend

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

func NewBackend

func NewBackend() (*TCellBackend, error)

func (*TCellBackend) Events

func (b *TCellBackend) Events() bool

func (*TCellBackend) Exit

func (b *TCellBackend) Exit()

func (*TCellBackend) MousePosition

func (b *TCellBackend) MousePosition() mathi.Vec2

func (*TCellBackend) MousePressed

func (b *TCellBackend) MousePressed(key timui.Key) bool

func (*TCellBackend) Render

func (b *TCellBackend) Render()

func (*TCellBackend) Set

func (b *TCellBackend) Set(pos mathi.Vec2, char rune, fg, bg uint32)

func (*TCellBackend) Size

func (b *TCellBackend) Size() mathi.Vec2

func (*TCellBackend) TakeInput

func (b *TCellBackend) TakeInput() timui.Input

func (*TCellBackend) WriteClipboard added in v0.0.4

func (b *TCellBackend) WriteClipboard(text string)

WriteClipboard sends an OSC 52 escape sequence directly to the controlling tty. tcell's Screen interface has no raw-write hook and stdout is normally redirected to a log file (the TUI owns the terminal), so /dev/tty is opened fresh for this one write rather than going through either. It also tries a local clipboard tool as a fallback: VTE-based terminals (GNOME Terminal, Guake, Tilix, ...) don't support OSC 52 copy at all.

Jump to

Keyboard shortcuts

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